diff options
author | Mikel Astiz <mikel.astiz@bmw-carit.de> | 2012-05-03 10:28:29 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-05-03 11:39:39 +0300 |
commit | 8cbc5060ef312a0de70adb22f683548e9502a3e5 (patch) | |
tree | e62fad4f8f8a4ace86e28817d461a7b2222cd046 /client/session.c | |
parent | 265b7643647a3c6dabfd6f54b3a36db28ec4d636 (diff) | |
download | obexd-8cbc5060ef312a0de70adb22f683548e9502a3e5.tar.gz |
client: Remove deprecated part of session API
Once the modules are using the new callback style, the session API can
be simplified and the old functions to access session->p removed.
Diffstat (limited to 'client/session.c')
-rw-r--r-- | client/session.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/client/session.c b/client/session.c index 408428c..b994080 100644 --- a/client/session.c +++ b/client/session.c @@ -1132,46 +1132,6 @@ const char *obc_session_get_target(struct obc_session *session) return session->driver->target; } -static struct obc_transfer *obc_session_get_transfer( - struct obc_session *session) -{ - if (session->p == NULL) - return NULL; - - return session->p->transfer; -} - -int obc_session_get_contents(struct obc_session *session, char **contents, - size_t *size) -{ - struct obc_transfer *transfer; - - transfer = obc_session_get_transfer(session); - if (transfer == NULL) { - if (size != NULL) - *size = 0; - - return -EINVAL; - } - - return obc_transfer_get_contents(transfer, contents, size); -} - -const void *obc_session_get_params(struct obc_session *session, size_t *size) -{ - struct obc_transfer *transfer; - - transfer = obc_session_get_transfer(session); - if (transfer == NULL) { - if (size != NULL) - *size = 0; - - return NULL; - } - - return obc_transfer_get_params(transfer, size); -} - static void setpath_complete(struct obc_session *session, struct obc_transfer *transfer, GError *err, void *user_data) |