diff options
author | Mikel Astiz <mikel.astiz@bmw-carit.de> | 2012-05-03 10:28:27 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-05-03 11:39:29 +0300 |
commit | 0a5e723ffa46a9602a4fbfb34e9540177c1a1c60 (patch) | |
tree | 5d04a9b5e3816a8eb78735e27b0c458f0ae7ed6a /client/map.c | |
parent | 7a80513d77606e5c9ab66020cccbb6b93eb7b827 (diff) | |
download | obexd-0a5e723ffa46a9602a4fbfb34e9540177c1a1c60.tar.gz |
client: Give transfer pointer in session callbacks
Operations involving a transfer object will receive a pointer to such
transfer in the callback.
Note that the ownership of this object is not changed in any way,
meaning that the session is still responsible for it. However this
pointer can be useful during the execution of the callback, in order to
access data members of the transfer.
Diffstat (limited to 'client/map.c')
-rw-r--r-- | client/map.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/client/map.c b/client/map.c index 1b4e404..50d02c6 100644 --- a/client/map.c +++ b/client/map.c @@ -32,6 +32,7 @@ #include "log.h" #include "map.h" +#include "transfer.h" #include "session.h" #include "driver.h" @@ -49,8 +50,9 @@ struct map_data { static DBusConnection *conn = NULL; -static void simple_cb(struct obc_session *session, GError *err, - gpointer user_data) +static void simple_cb(struct obc_session *session, + struct obc_transfer *transfer, + GError *err, void *user_data) { DBusMessage *reply; struct map_data *map = user_data; @@ -94,8 +96,9 @@ static DBusMessage *map_setpath(DBusConnection *connection, return NULL; } -static void buffer_cb(struct obc_session *session, GError *err, - void *user_data) +static void buffer_cb(struct obc_session *session, + struct obc_transfer *transfer, + GError *err, void *user_data) { struct map_data *map = user_data; DBusMessage *reply; |