mirror of git://git.sysmocom.de/ofono
gatio: add ability to drain GAtIO read buffer
This commit is contained in:
parent
6b3cfbba85
commit
70ae2f0028
|
@ -387,3 +387,8 @@ void g_at_io_set_write_done(GAtIO *io, GAtDisconnectFunc func,
|
|||
io->write_done_func = func;
|
||||
io->write_done_data = user_data;
|
||||
}
|
||||
|
||||
void g_at_io_drain_ring_buffer(GAtIO *io, guint len)
|
||||
{
|
||||
ring_buffer_drain(io->buf, len);
|
||||
}
|
||||
|
|
|
@ -52,6 +52,8 @@ gboolean g_at_io_set_write_handler(GAtIO *io, GAtIOWriteFunc write_handler,
|
|||
void g_at_io_set_write_done(GAtIO *io, GAtDisconnectFunc func,
|
||||
gpointer user_data);
|
||||
|
||||
void g_at_io_drain_ring_buffer(GAtIO *io, guint len);
|
||||
|
||||
gsize g_at_io_write(GAtIO *io, const gchar *data, gsize count);
|
||||
|
||||
gboolean g_at_io_set_disconnect_function(GAtIO *io,
|
||||
|
|
Loading…
Reference in New Issue