summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gatchat/gatppp.c6
-rw-r--r--gatchat/gatppp.h2
-rw-r--r--gatchat/gsmdial.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 461b54d9..dfdaf40c 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -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,
diff --git a/gatchat/gatppp.h b/gatchat/gatppp.h
index dbb80ad8..a9252378 100644
--- a/gatchat/gatppp.h
+++ b/gatchat/gatppp.h
@@ -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
}
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index 63c46f82..2f342f67 100644
--- a/gatchat/gsmdial.c
+++ b/gatchat/gsmdial.c
@@ -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);