Hi Denis,

On 02/05/2011 14:24, Denis Kenzior wrote:
Hi Guillaume,

On 04/01/2011 03:56 AM, Guillaume Zajac wrote:
---
  gatchat/gathdlc.c |    9 +++++++++
  1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c
index db4ad5a..37f2539 100644
--- a/gatchat/gathdlc.c
+++ b/gatchat/gathdlc.c
@@ -595,3 +595,12 @@ void g_at_hdlc_set_no_carrier_detect(GAtHDLC *hdlc, 
gboolean detect)

        hdlc->no_carrier_detect = detect;
  }
+
+void g_at_hdlc_suspend(GAtHDLC *hdlc)
+{
+       if (hdlc == NULL)
+               return;
+
+       g_at_io_set_write_handler(hdlc->io, NULL, NULL);
+       g_at_io_set_read_handler(hdlc->io, NULL, NULL);
+}
What do you think of simply putting this into the function that calls
the HDLC suspend callback?

Yes it would avoid some round-trips.
However we might need this function for gsmdial to make some tests.


Kind regards,
Guillaume


_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to