mirror of git://git.sysmocom.de/ofono
ppp: Add getter for HDLC object
This commit is contained in:
parent
4cdf49f0de
commit
ed15727b98
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue