summaryrefslogtreecommitdiffstats
path: root/gatchat/gsmdial.c
diff options
context:
space:
mode:
authorKristen Carlson Accardi <kristen@linux.intel.com>2010-05-10 11:39:43 -0700
committerDenis Kenzior <denkenz@gmail.com>2010-05-10 15:41:39 -0500
commitf13d5e2badcd2ca277e895990e47bb49e1df81a3 (patch)
treeeb6deb6d1f25b56f11ffd47eff6cdda26723f973 /gatchat/gsmdial.c
parent72c38f7adbc866babc3a5ecfe1e2da75af9763ab (diff)
downloadofono-f13d5e2badcd2ca277e895990e47bb49e1df81a3.tar.bz2
gsmdial: use g_at_ppp_new_from_io()
Diffstat (limited to 'gatchat/gsmdial.c')
-rw-r--r--gatchat/gsmdial.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index fd9b73bc..cfdec87e 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);