Add g_input_stream_read_all_async()
authorRyan Lortie <desrt@desrt.ca>
Mon, 29 Sep 2014 15:40:46 +0000 (11:40 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 21 Oct 2014 15:31:45 +0000 (11:31 -0400)
commit76b890d0f104b6ee48a057fc58f1c6b495fdf2f2
treebde2985a546cb751f61272204755f967ca2f1639
parentaabc3a41c36f89363884b2a61dd9b038e5b5c214
Add g_input_stream_read_all_async()

Add an asynchronous version of _read_all().

This API is not fully consistent with the normal expectations of a
non-asynchronous version.  Consistency between the sync and async version is
probably more important.

The API will still bind correctly, but access to all functionality will
not be available: specifically, in the case of an error, higher level
languages will be unable to determine how many bytes were successfully
read before the error.  Most users will probably not want to use this
information anyway, so this is OK -- and if they do need the
information, then they can just write the loop for themselves.

Heavily based on a patch from Ignacio Casal Quinteiro.

https://bugzilla.gnome.org/show_bug.cgi?id=737451
gio/ginputstream.c
gio/ginputstream.h