All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] add interface property to primary context
@ 2009-11-09  7:37 Martin Xu
  2009-11-09  7:37 ` [PATCH 2/4] add create/destroy_interface to ofono_gprs_context_driver Martin Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Martin Xu @ 2009-11-09  7:37 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

---
 include/gprs-context.h |    1 +
 src/gprs.c             |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/gprs-context.h b/include/gprs-context.h
index c4ebd23..adb0820 100644
--- a/include/gprs-context.h
+++ b/include/gprs-context.h
@@ -37,6 +37,7 @@ struct ofono_gprs_context;
 struct ofono_gprs_primary_context {
 	unsigned int cid;
 	int direction;
+	char *interface;
 	char apn[OFONO_GPRS_MAX_APN_LENGTH + 1];
 	char username[OFONO_GPRS_MAX_USERNAME_LENGTH + 1];
 	char password[OFONO_GPRS_MAX_PASSWORD_LENGTH + 1];
diff --git a/src/gprs.c b/src/gprs.c
index 0253109..18ae82a 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -185,6 +185,10 @@ static DBusMessage *pri_get_properties(DBusConnection *conn,
 	ofono_dbus_dict_append(&dict, "Password", DBUS_TYPE_STRING,
 				&strvalue);
 
+	strvalue = ctx->context.interface;
+	ofono_dbus_dict_append(&dict, "Interface", DBUS_TYPE_STRING,
+				&strvalue);
+ 
 	dbus_message_iter_close_container(&iter, &dict);
 
 	return reply;
-- 
1.6.1.3


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-11-10  4:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-09  7:37 [PATCH 1/4] add interface property to primary context Martin Xu
2009-11-09  7:37 ` [PATCH 2/4] add create/destroy_interface to ofono_gprs_context_driver Martin Xu
2009-11-09  7:38   ` [PATCH 3/4] add function ofono_gprs_context_get_modem Martin Xu
2009-11-09  7:38     ` [PATCH 4/4] add mbm_gprs_create/destroy_interface to mbm gprs_context_driver Martin Xu
2009-11-09 16:59   ` [PATCH 2/4] add create/destroy_interface to ofono_gprs_context_driver Denis Kenzior
2009-11-09  7:42 ` [PATCH */4] add interface property to primary context Xu, Martin
2009-11-10  3:28   ` How does ConnMan works with Ofono? " Xu, Martin
2009-11-10  4:52     ` Xu, Martin
2009-11-09 16:57 ` [PATCH 1/4] " Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.