diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-04-30 15:32:45 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-30 15:32:45 -0500 |
commit | 02c2cdaf21f0cacbc679776c79aff93b96f1dcbb (patch) | |
tree | c018b6c296b9477f4e942e670423e9be0f7d537d /gatchat/gsmdial.c | |
parent | 6d20194e7520a2190429b9f4582a7ee3b573d3c9 (diff) | |
download | ofono-02c2cdaf21f0cacbc679776c79aff93b96f1dcbb.tar.bz2 |
gsmdial: Port to new PPP api
Diffstat (limited to 'gatchat/gsmdial.c')
-rw-r--r-- | gatchat/gsmdial.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c index 2f342f67..a531aa33 100644 --- a/gatchat/gsmdial.c +++ b/gatchat/gsmdial.c @@ -221,16 +221,10 @@ out: return FALSE; } -static void ppp_connect(GAtPPPConnectStatus success, - const char *iface, const char *ip, +static void ppp_connect(const char *iface, const char *ip, const char *dns1, const char *dns2, gpointer user_data) { - if (success != G_AT_PPP_CONNECT_SUCCESS) { - g_print("Failed to create PPP interface!\n"); - return; - } - /* print out the negotiated address and dns server */ g_print("Network Device: %s\n", iface); g_print("IP Address: %s\n", ip); @@ -238,9 +232,9 @@ static void ppp_connect(GAtPPPConnectStatus success, g_print("Secondary DNS Server: %s\n", dns2); } -static void ppp_disconnect(gpointer user_data) +static void ppp_disconnect(GAtPPPDisconnectReason reason, gpointer user_data) { - g_print("PPP Link down\n"); + g_print("PPP Link down: %d\n", reason); } static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data) |