ppp: Add getter for HDLC object

This commit is contained in:
Denis Kenzior 2010-04-28 15:54:58 -05:00
parent 4cdf49f0de
commit ed15727b98
2 changed files with 11 additions and 0 deletions

View File

@ -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)
{

View File

@ -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