summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.h
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2010-06-25 11:19:05 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-06-28 10:17:58 -0500
commit588db023541fda0b61c162c0a5a2e624bc404bf3 (patch)
treeea883d8e00e77c14d73f7b27c18a7bc908e6cbed /gatchat/gatppp.h
parentca41d63a305c0761c25b52fe0af45387db478680 (diff)
downloadofono-588db023541fda0b61c162c0a5a2e624bc404bf3.tar.bz2
gatppp: Add PPP server extension
1. Add interface to set PPP server info by g_at_ppp_set_server_info. 2. Pass local and peer address through IPCP handshaking.
Diffstat (limited to 'gatchat/gatppp.h')
-rw-r--r--gatchat/gatppp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gatchat/gatppp.h b/gatchat/gatppp.h
index 438b9521..aea4ec07 100644
--- a/gatchat/gatppp.h
+++ b/gatchat/gatppp.h
@@ -43,7 +43,8 @@ typedef enum _GAtPPPDisconnectReason {
G_AT_PPP_REASON_LOCAL_CLOSE, /* Normal user close */
} GAtPPPDisconnectReason;
-typedef void (*GAtPPPConnectFunc)(const char *iface, const char *ip,
+typedef void (*GAtPPPConnectFunc)(const char *iface, const char *local,
+ const char *peer,
const char *dns1, const char *dns2,
gpointer user_data);
typedef void (*GAtPPPDisconnectFunc)(GAtPPPDisconnectReason reason,
@@ -68,6 +69,9 @@ const char *g_at_ppp_get_password(GAtPPP *ppp);
void g_at_ppp_set_recording(GAtPPP *ppp, const char *filename);
+void g_at_ppp_set_server_info(GAtPPP *ppp, guint32 local, guint32 peer,
+ guint32 dns1, guint32 dns2);
+
#ifdef __cplusplus
}
#endif