From: Kristen Carlson Accardi <kristen@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH 2/3] gatchat: implement g_at_chat_get_io()
Date: Mon, 10 May 2010 11:39:42 -0700 [thread overview]
Message-ID: <1273516783-5132-3-git-send-email-kristen@linux.intel.com> (raw)
In-Reply-To: <1273516783-5132-1-git-send-email-kristen@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1193 bytes --]
---
gatchat/gatchat.c | 8 ++++++++
gatchat/gatchat.h | 2 ++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c
index f94605f..3f238a2 100644
--- a/gatchat/gatchat.c
+++ b/gatchat/gatchat.c
@@ -876,6 +876,14 @@ GIOChannel *g_at_chat_get_channel(GAtChat *chat)
return g_at_io_get_channel(chat->io);
}
+GAtIO *g_at_chat_get_io(GAtChat *chat)
+{
+ if (chat == NULL)
+ return NULL;
+
+ return chat->io;
+}
+
GAtChat *g_at_chat_ref(GAtChat *chat)
{
if (chat == NULL)
diff --git a/gatchat/gatchat.h b/gatchat/gatchat.h
index ea6626e..9fd7ced 100644
--- a/gatchat/gatchat.h
+++ b/gatchat/gatchat.h
@@ -29,6 +29,7 @@ extern "C" {
#include "gatresult.h"
#include "gatsyntax.h"
#include "gatutil.h"
+#include "gatio.h"
struct _GAtChat;
@@ -42,6 +43,7 @@ GAtChat *g_at_chat_new(GIOChannel *channel, GAtSyntax *syntax);
GAtChat *g_at_chat_new_blocking(GIOChannel *channel, GAtSyntax *syntax);
GIOChannel *g_at_chat_get_channel(GAtChat *chat);
+GAtIO *g_at_chat_get_io(GAtChat *chat);
GAtChat *g_at_chat_ref(GAtChat *chat);
void g_at_chat_unref(GAtChat *chat);
--
1.6.6.1
next prev parent reply other threads:[~2010-05-10 18:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-10 18:39 [PATCH 0/3] Allow use of from_io constructor Kristen Carlson Accardi
2010-05-10 18:39 ` [PATCH 1/3] gsmdial: use g_at_chat_suspend Kristen Carlson Accardi
2010-05-10 18:39 ` Kristen Carlson Accardi [this message]
2010-05-10 18:39 ` [PATCH 3/3] gsmdial: use g_at_ppp_new_from_io() Kristen Carlson Accardi
2010-05-10 21:26 ` [PATCH 0/3] Allow use of from_io constructor 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=1273516783-5132-3-git-send-email-kristen@linux.intel.com \
--to=kristen@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox