summaryrefslogtreecommitdiff
path: root/gio/gio.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2010-09-18 13:05:25 -0400
committerDan Winship <danw@gnome.org>2010-11-26 15:08:08 -0500
commitc20c2c0abd3bdb1b30b85a586ee6095ed75a7bc2 (patch)
tree77b0d54c202be5c4a068d374323f98750c9dca9a /gio/gio.h
parent6181c7de36771d4d3bb55785912a934e078b16df (diff)
downloadglib-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/gio.h b/gio/gio.h
index c18384ff0..0babc7c10 100644
--- a/gio/gio.h
+++ b/gio/gio.h
@@ -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>