summaryrefslogtreecommitdiffstats
path: root/gatchat/gathdlc.h
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-02-28 14:24:39 -0600
committerDenis Kenzior <denkenz@gmail.com>2011-02-28 16:13:56 -0600
commit0dc8e5e588d7f12a9836582bf8b41a31572a7271 (patch)
tree8f3e6429d6ce373ea213621acd75db8b89395826 /gatchat/gathdlc.h
parentef2c133281e3d5c474da190b84d9de38da32802c (diff)
downloadofono-0dc8e5e588d7f12a9836582bf8b41a31572a7271.tar.bz2
gathdlc: Try to detect no carrier conditions
Sometimes we receive the no carrier embedded in a stream following the PPP packets. This might be due to write scheduling on the remote side or read scheduling locally. Try not to consume the no carrier condition and assume the previous hdlc frames will result in closing of the ppp stack.
Diffstat (limited to 'gatchat/gathdlc.h')
-rw-r--r--gatchat/gathdlc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gatchat/gathdlc.h b/gatchat/gathdlc.h
index 132e1a9e..95c389e0 100644
--- a/gatchat/gathdlc.h
+++ b/gatchat/gathdlc.h
@@ -55,6 +55,8 @@ void g_at_hdlc_set_recording(GAtHDLC *hdlc, const char *filename);
GAtIO *g_at_hdlc_get_io(GAtHDLC *hdlc);
+void g_at_hdlc_set_no_carrier_detect(GAtHDLC *hdlc, gboolean detect);
+
#ifdef __cplusplus
}
#endif