Parent: 84d105d8e0a4910954c868c2eb3b8a98b952e7ba
Author: Mikel Astiz <mikel.astiz@bmw-carit.de>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:55
Tree: 911d4cbeaf42034b12f4b7aba39295416673f699
obexd: fix naming convention in transfer api The terms can be quite misleading, so this patch proposes to follow the terminology in the D-Bus api: - Name: the remote name of the object being transferred - Filename: the name of the file in local the filesystem Both values can be NULL independently. This fixes the problem of using the terms differently in get and put operations. The result was that the properties "Name" and "Filename" were swapped in D-Bus in the case of get. Once the fields map to obex fields, the interpretation of the response from the agent becomes more complicated. Depending on the transfer type, either the name or the filename field must be updated.
Diffstat
| M | obexd/client/session.c | | | 16 | ++++++++++- - - - - - |
| M | obexd/client/transfer.c | | | 7 | +++- - - - |
2 files changed, 13 insertions(+), 10 deletions(-)