summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gatchat/gatppp.c8
-rw-r--r--gatchat/gatppp.h3
2 files changed, 11 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)
{
diff --git a/gatchat/gatppp.h b/gatchat/gatppp.h
index d9cdf0fc..dbb80ad8 100644
--- a/gatchat/gatppp.h
+++ b/gatchat/gatppp.h
@@ -27,6 +27,7 @@ extern "C" {
#endif
#include "gat.h"
+#include "gathdlc.h"
struct _GAtPPP;
@@ -58,6 +59,8 @@ gboolean g_at_ppp_set_credentials(GAtPPP *ppp, const char *username,
const char *g_at_ppp_get_username(GAtPPP *ppp);
const char *g_at_ppp_get_password(GAtPPP *ppp);
+GAtHDLC *g_at_ppp_get_hdlc(GAtPPP *ppp);
+
#ifdef __cplusplus
}
#endif