diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-04-27 22:43:25 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-28 17:27:34 -0500 |
commit | 6a66505e4607d4065940475dcc03d81db47371eb (patch) | |
tree | efe098694e7ba02a7f19c72325872f492a1db6f1 /gatchat/gatio.h | |
parent | 85448aac8cf71b1528d4328def581b103326210d (diff) | |
download | ofono-6a66505e4607d4065940475dcc03d81db47371eb.tar.bz2 |
gatio: support for blocking / nonblocking writes
Diffstat (limited to 'gatchat/gatio.h')
-rw-r--r-- | gatchat/gatio.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gatchat/gatio.h b/gatchat/gatio.h index 68b6ea8e..cb19164b 100644 --- a/gatchat/gatio.h +++ b/gatchat/gatio.h @@ -33,7 +33,7 @@ struct _GAtIO; typedef struct _GAtIO GAtIO; typedef void (*GAtIOReadFunc)(struct ring_buffer *buffer, gpointer user_data); -typedef void (*GAtIOWriteFunc)(gpointer user_data); +typedef gboolean (*GAtIOWriteFunc)(gpointer user_data); GAtIO *g_at_io_new(GIOChannel *channel); GAtIO *g_at_io_new_blocking(GIOChannel *channel); @@ -45,6 +45,9 @@ void g_at_io_unref(GAtIO *io); gboolean g_at_io_set_read_handler(GAtIO *io, GAtIOReadFunc read_handler, gpointer user_data); +gboolean g_at_io_set_write_handler(GAtIO *io, GAtIOWriteFunc write_handler, + gpointer user_data); +gsize g_at_io_write(GAtIO *io, const gchar *data, gsize count); gboolean g_at_io_set_disconnect_function(GAtIO *io, GAtDisconnectFunc disconnect, gpointer user_data); |