mirror of git://git.sysmocom.de/ofono
ppp: Hang set_recording off the GAtPPP object
Marcel: recording right now only works for PPP, so we'd need some sort of multi-protocol support. So for now expose set_recording to be used through the main PPP object. HDLC object recording support needs to be extended.
This commit is contained in:
parent
e42b7282f7
commit
c9edf56fc6
|
@ -308,12 +308,12 @@ const char *g_at_ppp_get_password(GAtPPP *ppp)
|
|||
return ppp->password;
|
||||
}
|
||||
|
||||
GAtHDLC *g_at_ppp_get_hdlc(GAtPPP *ppp)
|
||||
void g_at_ppp_set_recording(GAtPPP *ppp, const char *filename)
|
||||
{
|
||||
if (ppp == NULL)
|
||||
return NULL;
|
||||
return;
|
||||
|
||||
return ppp->hdlc;
|
||||
g_at_hdlc_set_recording(ppp->hdlc, filename);
|
||||
}
|
||||
|
||||
void g_at_ppp_set_connect_function(GAtPPP *ppp, GAtPPPConnectFunc func,
|
||||
|
|
|
@ -59,7 +59,7 @@ 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);
|
||||
void g_at_ppp_set_recording(GAtPPP *ppp, const char *filename);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -273,7 +273,7 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
g_at_ppp_set_debug(ppp, gsmdial_debug, "PPP");
|
||||
|
||||
if (option_pppdump)
|
||||
g_at_hdlc_set_recording(g_at_ppp_get_hdlc(ppp), option_pppdump);
|
||||
g_at_ppp_set_recording(ppp, option_pppdump);
|
||||
|
||||
g_at_ppp_set_credentials(ppp, option_username, option_password);
|
||||
|
||||
|
|
Loading…
Reference in New Issue