summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-04-28 15:54:58 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-04-28 17:27:36 -0500
commited15727b989478ee5016ba768e78ee534bb098c1 (patch)
tree488a53284bf53fb12ead127dbcc82c6b2fe3e560 /gatchat/gatppp.c
parent4cdf49f0de4257d32b81e73985dc42dfa996ef24 (diff)
downloadofono-ed15727b989478ee5016ba768e78ee534bb098c1.tar.bz2
ppp: Add getter for HDLC object
Diffstat (limited to 'gatchat/gatppp.c')
-rw-r--r--gatchat/gatppp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index bd230bf4..1e6862a0 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -297,6 +297,14 @@ const char *g_at_ppp_get_password(GAtPPP *ppp)
return ppp->password;
}
+GAtHDLC *g_at_ppp_get_hdlc(GAtPPP *ppp)
+{
+ if (ppp == NULL)
+ return NULL;
+
+ return ppp->hdlc;
+}
+
void g_at_ppp_set_connect_function(GAtPPP *ppp, GAtPPPConnectFunc func,
gpointer user_data)
{