mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 16:08:43 +02:00
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
This commit is contained in:
@@ -349,6 +349,8 @@ libgio_2_0_la_SOURCES = \
|
||||
goutputstream.c \
|
||||
gperiodic.c \
|
||||
gpermission.c \
|
||||
gpollableinputstream.c \
|
||||
gpollableoutputstream.c \
|
||||
gpollfilemonitor.c \
|
||||
gpollfilemonitor.h \
|
||||
gproxyresolver.c \
|
||||
@@ -505,6 +507,8 @@ gio_headers = \
|
||||
goutputstream.h \
|
||||
gperiodic.h \
|
||||
gpermission.h \
|
||||
gpollableinputstream.h \
|
||||
gpollableoutputstream.h \
|
||||
gproxyaddress.h \
|
||||
gproxy.h \
|
||||
gproxyaddressenumerator.h \
|
||||
|
Reference in New Issue
Block a user