mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
Bug 568394 – dropping the last reference to a stream filter closes the
2009-01-20 Ryan Lortie <desrt@desrt.ca> Bug 568394 – dropping the last reference to a stream filter closes the base stream * gfilterinputstream.h: * gfilterinputstream.c: add "close-base-stream" property and only close the base stream if it is true. issue async close callbacks from correct source object. * gfilteroutputstream.h: * gfilteroutputstream.c: add a "close-base-stream" property and only close the base stream if it is true. issue async close callbacks from correct source object. * gbufferedoutputstream: check g_filter_output_stream_get_close_base() before closing the base stream. fix invalid source tag comparison in close_async (was comparing to flush_async). * ../docs/reference/gio/gio-sections.txt: * gio.symbols: add g_filter_{in,out}put_stream_{g,s}et_close_base_stream * tests/filter-streams.c: new test cases * tests/Makefile.am: add new test * tests/.gitignore: add new test svn path=/trunk/; revision=7825
This commit is contained in:
@@ -44,7 +44,6 @@ G_BEGIN_DECLS
|
||||
* A base class for all input streams that work on an underlying stream.
|
||||
**/
|
||||
typedef struct _GFilterInputStreamClass GFilterInputStreamClass;
|
||||
typedef struct _GFilterInputStreamPrivate GFilterInputStreamPrivate;
|
||||
|
||||
struct _GFilterInputStream
|
||||
{
|
||||
@@ -66,8 +65,11 @@ struct _GFilterInputStreamClass
|
||||
};
|
||||
|
||||
|
||||
GType g_filter_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GInputStream * g_filter_input_stream_get_base_stream (GFilterInputStream *stream);
|
||||
GType g_filter_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GInputStream * g_filter_input_stream_get_base_stream (GFilterInputStream *stream);
|
||||
gboolean g_filter_input_stream_get_close_base_stream (GFilterInputStream *stream);
|
||||
void g_filter_input_stream_set_close_base_stream (GFilterInputStream *stream,
|
||||
gboolean close_base);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user