Commit: b5fe20a9a40fb224cfbaae7e3c38f59e80f7e6a2
Parent: c8ec529a7cc9980866f215c5478b194c756e95e4
Author: Mikel Astiz <mikel.astiz@bmw-carit.de>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:49:01
Tree: ce3a93fb829ef0898a12728d99da02e42bd96a2b

obexd: Support empty filename in obc_transfer_get Passing an empty string as a filename for obc_transfer_get will be similar to passing a NULL filename. This means a temporary file will be created to store the content of the transfer. NULL and "" are not exactly equivalent though: in case of NULL the file will be automatically removed immediately after being open, which means that the transfer initiator should also open the file to prevent it from being removed (to be used from the modules). In this case, the filename will not be exposed in D-Bus. On the other hand, if "" is given, the file will be removed only in case of error. So after success the transfer initiator should decide whether the file should be removed or not. This change is convenient in order to expose the same API in D-Bus.

Diffstat

M obexd/client/transfer.c | 27 ++++++++++++++++++++++- - - - -

1 files changed, 22 insertions(+), 5 deletions(-)

View Full Diff | Patch