All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Xu <martin.xu@intel.com>
To: ofono@ofono.org
Subject: [PATCH 3/4] add function ofono_gprs_context_get_modem
Date: Mon, 09 Nov 2009 15:38:00 +0800	[thread overview]
Message-ID: <1257752281-22251-3-git-send-email-martin.xu@intel.com> (raw)
In-Reply-To: <1257752281-22251-2-git-send-email-martin.xu@intel.com>

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

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

diff --git a/include/gprs-context.h b/include/gprs-context.h
index b8c770d..2a788ef 100644
--- a/include/gprs-context.h
+++ b/include/gprs-context.h
@@ -76,6 +76,8 @@ void ofono_gprs_context_remove(struct ofono_gprs_context *gc);
 void ofono_gprs_context_set_data(struct ofono_gprs_context *gc, void *data);
 void *ofono_gprs_context_get_data(struct ofono_gprs_context *gc);
 
+struct ofono_modem *ofono_gprs_context_get_modem(struct ofono_gprs_context *gc);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/src/gprs.c b/src/gprs.c
index 60d26ec..025b944 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -1249,6 +1249,11 @@ void *ofono_gprs_context_get_data(struct ofono_gprs_context *gc)
 	return gc->driver_data;
 }
 
+struct ofono_modem *ofono_gprs_context_get_modem(struct ofono_gprs_context *gc)
+{
+	return __ofono_atom_get_modem(gc->atom);
+}
+
 int ofono_gprs_driver_register(const struct ofono_gprs_driver *d)
 {
 	DBG("driver: %p, name: %s", d, d->name);
-- 
1.6.1.3


  reply	other threads:[~2009-11-09  7:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Martin Xu [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1257752281-22251-3-git-send-email-martin.xu@intel.com \
    --to=martin.xu@intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.