From: Kristen Carlson Accardi <kristen@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH 3/3] gsmdial: use g_at_ppp_new_from_io()
Date: Mon, 10 May 2010 11:39:43 -0700 [thread overview]
Message-ID: <1273516783-5132-4-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: 1093 bytes --]
---
gatchat/gsmdial.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index fd9b73b..cfdec87 100644
--- a/gatchat/gsmdial.c
+++ b/gatchat/gsmdial.c
@@ -241,7 +241,7 @@ static void ppp_disconnect(GAtPPPDisconnectReason reason, gpointer user_data)
static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
{
- GIOChannel *channel;
+ GAtIO *io;
if (!ok) {
g_print("Unable to define context\n");
@@ -249,7 +249,7 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
}
/* get the data IO channel */
- channel = g_at_chat_get_channel(modem);
+ io = g_at_chat_get_io(modem);
/*
* shutdown gatchat or else it tries to take all the input
@@ -259,7 +259,7 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
g_at_chat_suspend(modem);
/* open ppp */
- ppp = g_at_ppp_new(channel);
+ ppp = g_at_ppp_new_from_io(io);
if (!ppp) {
g_print("Unable to create PPP object\n");
exit(1);
--
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 ` [PATCH 2/3] gatchat: implement g_at_chat_get_io() Kristen Carlson Accardi
2010-05-10 18:39 ` Kristen Carlson Accardi [this message]
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-4-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