summaryrefslogtreecommitdiffstats
path: root/gatchat/gatutil.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-01-28 22:05:44 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-01-28 22:05:44 +0100
commitc9a37e4a9a3c798582755757af429fe998746112 (patch)
tree68b2373122a0396a31e07ce61d19014f4e204d77 /gatchat/gatutil.c
parentfb918d39ba275cdd3270160f18a1fc43f29dcea6 (diff)
downloadofono-c9a37e4a9a3c798582755757af429fe998746112.tar.bz2
Add new constructor for fully blocking operation
Diffstat (limited to 'gatchat/gatutil.c')
-rw-r--r--gatchat/gatutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/gatutil.c b/gatchat/gatutil.c
index dcff4c7b..7ca1d3f9 100644
--- a/gatchat/gatutil.c
+++ b/gatchat/gatutil.c
@@ -106,7 +106,7 @@ void g_at_util_debug_chat(gboolean in, const char *str, gsize len,
g_free(escaped_str);
}
-gboolean g_at_util_setup_io(GIOChannel *io)
+gboolean g_at_util_setup_io(GIOChannel *io, GIOFlags flags)
{
GIOFlags io_flags;
@@ -116,7 +116,7 @@ gboolean g_at_util_setup_io(GIOChannel *io)
io_flags = g_io_channel_get_flags(io);
- io_flags |= G_IO_FLAG_NONBLOCK;
+ io_flags |= (flags & G_IO_FLAG_SET_MASK);
if (g_io_channel_set_flags(io, io_flags, NULL) !=
G_IO_STATUS_NORMAL)