diff options
author | Christian Fetzer <christian.fetzer@bmw-carit.de> | 2013-06-17 10:35:26 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-06-25 15:04:42 +0300 |
commit | 56de7139dafa18b7f95080fbf46d44ae506694fa (patch) | |
tree | e4504ffb387c6710c3db679b2e308a11d059194a | |
parent | 1259936bba08e48e48e77965348d7367002c9e44 (diff) |
obexd: Add function to get the destination from the obc_session
-rw-r--r-- | obexd/client/session.c | 5 | ||||
-rw-r--r-- | obexd/client/session.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/obexd/client/session.c b/obexd/client/session.c index 12a4997ee..8d32ed03e 100644 --- a/obexd/client/session.c +++ b/obexd/client/session.c @@ -892,6 +892,11 @@ const char *obc_session_get_owner(struct obc_session *session) return session->owner; } +const char *obc_session_get_destination(struct obc_session *session) +{ + return session->destination; +} + const char *obc_session_get_path(struct obc_session *session) { return session->path; diff --git a/obexd/client/session.h b/obexd/client/session.h index b0b36557c..319d5290a 100644 --- a/obexd/client/session.h +++ b/obexd/client/session.h @@ -48,6 +48,7 @@ int obc_session_set_owner(struct obc_session *session, const char *name, GDBusWatchFunction func); const char *obc_session_get_owner(struct obc_session *session); +const char *obc_session_get_destination(struct obc_session *session); const char *obc_session_get_path(struct obc_session *session); const char *obc_session_get_target(struct obc_session *session); |