summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.h
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-06-29 11:53:11 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-06-29 11:53:11 -0500
commit820b1f55c8f9e615ef860327ef58a54006ec8822 (patch)
treef760579f42c3d87d9dc415848414cfa4b8a6e4a2 /gatchat/gatppp.h
parent969862337a77d10081cc72ca9ec0aaafaa3e977e (diff)
downloadofono-820b1f55c8f9e615ef860327ef58a54006ec8822.tar.bz2
ppp: Refactor server-side API
The biggest update here is that the server needs to be in dormant mode by default, so as not to send a Configure-Req to the peer until the peer is ready. This requires adding special constructor for LCP to initialize it to Stopped state instead of initial state. Along with this, we pass the server local IP directly to the ppp server constructor.
Diffstat (limited to 'gatchat/gatppp.h')
-rw-r--r--gatchat/gatppp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gatchat/gatppp.h b/gatchat/gatppp.h
index 450a26df..fb5de4c3 100644
--- a/gatchat/gatppp.h
+++ b/gatchat/gatppp.h
@@ -52,6 +52,9 @@ typedef void (*GAtPPPDisconnectFunc)(GAtPPPDisconnectReason reason,
GAtPPP *g_at_ppp_new(GIOChannel *modem);
GAtPPP *g_at_ppp_new_from_io(GAtIO *io);
+GAtPPP *g_at_ppp_server_new(GIOChannel *modem, const char *local);
+GAtPPP *g_at_ppp_server_new_from_io(GAtIO *io, const char *local);
+
void g_at_ppp_open(GAtPPP *ppp);
void g_at_ppp_set_connect_function(GAtPPP *ppp, GAtPPPConnectFunc callback,
gpointer user_data);