[PATCH v3 06/15] session: Add connman_session_get_owner()

Daniel Wagner wagi at monom.org
Fri Nov 2 09:26:15 PDT 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 cbed939..8fbf88e 100644
--- a/include/session.h
+++ b/include/session.h
@@ -79,6 +79,8 @@ void connman_session_config_update(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 ff12a35..6ae3857 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.7.11.7




More information about the connman mailing list