diff options
author | Dan Winship <danw@gnome.org> | 2010-09-18 13:05:25 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2010-11-26 15:08:08 -0500 |
commit | c20c2c0abd3bdb1b30b85a586ee6095ed75a7bc2 (patch) | |
tree | 77b0d54c202be5c4a068d374323f98750c9dca9a /gio/gio.h | |
parent | 6181c7de36771d4d3bb55785912a934e078b16df (diff) | |
download | glib-c20c2c0abd3bdb1b30b85a586ee6095ed75a7bc2.tar.gz |
Add pollable input/output streams
When interfacing with APIs that expect unix-style async I/O, it is
useful to be able to tell in advance whether a read/write is going to
block. This adds new interfaces GPollableInputStream and
GPollableOutputStream that can be implemented by a GInputStream or
GOutputStream to add _is_readable/_is_writable, _create_source, and
_read_nonblocking/_write_nonblocking methods.
Also, implement for GUnixInput/OutputStream and
GSocketInput/OutputStream
https://bugzilla.gnome.org/show_bug.cgi?id=634241
Diffstat (limited to 'gio/gio.h')
-rw-r--r-- | gio/gio.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -95,6 +95,8 @@ #include <gio/goutputstream.h> #include <gio/gperiodic.h> #include <gio/gpermission.h> +#include <gio/gpollableinputstream.h> +#include <gio/gpollableoutputstream.h> #include <gio/gproxy.h> #include <gio/gproxyaddress.h> #include <gio/gproxyaddressenumerator.h> |