diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-04-28 15:54:58 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-28 17:27:36 -0500 |
commit | ed15727b989478ee5016ba768e78ee534bb098c1 (patch) | |
tree | 488a53284bf53fb12ead127dbcc82c6b2fe3e560 | |
parent | 4cdf49f0de4257d32b81e73985dc42dfa996ef24 (diff) | |
download | ofono-ed15727b989478ee5016ba768e78ee534bb098c1.tar.bz2 |
ppp: Add getter for HDLC object
-rw-r--r-- | gatchat/gatppp.c | 8 | ||||
-rw-r--r-- | gatchat/gatppp.h | 3 |
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 |