gio: minor GPollableInputStream / GPollableOutputStream fixes
authorDan Winship <danw@gnome.org>
Sun, 1 Apr 2012 18:47:19 +0000 (14:47 -0400)
committerDan Winship <danw@gnome.org>
Tue, 17 Apr 2012 16:33:12 +0000 (12:33 -0400)
commit7e95777a6a46ef40b1a175e95136942b4eed4d75
tree02a33811f94f865a13ab8726174640c7fd1ec8ad
parentadea9fb25210f2d04bcf2453c18847fb965927f7
gio: minor GPollableInputStream / GPollableOutputStream fixes

Make g_pollable_input_stream_read() and
g_pollable_output_stream_write() look a little bit more like the
non-pollable versions in terms of error handling, etc. Also, use the
read_fn and write_fn virtual methods directly rather than calling
g_input_stream_read()/g_output_stream_write(), to avoid problems with
re-entrancy involving the "pending" flag.

Also belatedly add single-include guards to the header files.

https://bugzilla.gnome.org/show_bug.cgi?id=673997
gio/gpollableinputstream.c
gio/gpollableinputstream.h
gio/gpollableoutputstream.c
gio/gpollableoutputstream.h