summaryrefslogtreecommitdiffstats
path: root/gatchat/gathdlc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat/gathdlc.c')
-rw-r--r--gatchat/gathdlc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c
index a5e8ed41..48426674 100644
--- a/gatchat/gathdlc.c
+++ b/gatchat/gathdlc.c
@@ -313,6 +313,14 @@ guint32 g_at_hdlc_get_xmit_accm(GAtHDLC *hdlc)
return hdlc->xmit_accm[0];
}
+GAtIO *g_at_hdlc_get_io(GAtHDLC *hdlc)
+{
+ if (hdlc == NULL)
+ return NULL;
+
+ return hdlc->io;
+}
+
#define NEED_ESCAPE(xmit_accm, c) xmit_accm[c >> 5] & (1 << (c & 0x1f))
gboolean g_at_hdlc_send(GAtHDLC *hdlc, const unsigned char *data, gsize size)