Return-Path: From: Mikel Astiz To: linux-bluetooth@vger.kernel.org Cc: Mikel Astiz Subject: [PATCH obexd v1 00/15] client: Return transfer object in D-Bus API Date: Mon, 4 Jun 2012 11:37:43 +0200 Message-Id: <1338802678-7009-1-git-send-email-mikel.astiz.oss@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Mikel Astiz This second version makes the filename property of transfers optional. For transfers initiated internally by the modules (where filename == NULL), the D-Bus property will not be present, and internally the filename will be set to NULL. This simplifies patch v0 02/14 by avoiding the additional flag needed to distinguish whether the file should be removed or not on success. >From original cover letter: This patch series proposes changes in the D-Bus API so that all transfer-initiating methods will return the transfer path. This has several benefits including the possibility to cancel the transfer. Along with the transfer path, the properties corresponding to this transfer will also be returned, for both performance reasons (avoid a call to GetProperties) and also race conditions (transfer might have been destroyed by the time the client calls to GetProperties). In addition, temporary files can now easily be used by the clients, by passing empty strings in the D-Bus API. The actual name of the created temporary file will be included in the transfer properties. Mikel Astiz (15): client: Make transfer filename optional client-doc: ObjectPush sessions return transfers client: Support empty filename in obc_transfer_get client: Expose D-Bus data in internal transfer API client: ObjectPush sessions return transfers client-doc: FileTransfer sessions return transfers client: FileTransfer sessions return transfers client-doc: Synchronization sessions return transfers client: Synchronization sessions return transfers client-doc: PhonebookAccess sessions return transfers client: PhonebookAccess sessions return transfers client-test: ftp-client uses new API client-test: pbap-client uses new API client-test: Add opp-client client: Update copyright statement client/ftp.c | 46 ++++-------- client/opp.c | 71 +++--------------- client/pbap.c | 161 +++++++++++++++++++---------------------- client/session.c | 1 + client/session.h | 1 + client/sync.c | 92 ++++++++--------------- client/transfer.c | 92 +++++++++++++++++++---- client/transfer.h | 4 + doc/client-api.txt | 116 ++++++++++++++++++++++++----- test/ftp-client | 159 ++++++++++++++++++++++++---------------- test/opp-client | 101 +++++++++++++++++++++++++ test/pbap-client | 187 ++++++++++++++++++++++++++++++++++++++--------- test/pull-business-card | 40 ---------- test/send-files | 23 ------ 14 files changed, 662 insertions(+), 432 deletions(-) create mode 100755 test/opp-client delete mode 100755 test/pull-business-card delete mode 100755 test/send-files -- 1.7.7.6