[PATCH v4 08/18] session: Add getter for session owner

Daniel Wagner wagi at monom.org
Wed Nov 14 08:26:07 PST 2012


From: Daniel Wagner <daniel.wagner at bmw-carit.de>

---
 include/session.h | 2 ++
 src/session.c     | 5 +++++
 2 files changed, 7 insertions(+)

diff --git a/include/session.h b/include/session.h
index c56c73b..9084ab4 100644
--- a/include/session.h
+++ b/include/session.h
@@ -80,6 +80,8 @@ void connman_session_destroy(struct connman_session *session);
 
 struct connman_session_config *connman_session_create_default_config(void);
 
+const char *connman_session_get_owner(struct connman_session *session);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/src/session.c b/src/session.c
index 1287d19..480286d 100644
--- a/src/session.c
+++ b/src/session.c
@@ -469,6 +469,11 @@ static int apply_policy_on_bearers(GSList *policy_bearers, GSList *bearers,
 	return 0;
 }
 
+const char *connman_session_get_owner(struct connman_session *session)
+{
+	return session->owner;
+}
+
 static void append_allowed_bearers(DBusMessageIter *iter, void *user_data)
 {
 	struct session_info *info = user_data;
-- 
1.8.0.rc0




More information about the connman mailing list