Bug 568394 – dropping the last reference to a stream filter closes the
authorRyan Lortie <desrt@desrt.ca>
Wed, 21 Jan 2009 14:09:56 +0000 (14:09 +0000)
committerRyan Lortie <ryanl@src.gnome.org>
Wed, 21 Jan 2009 14:09:56 +0000 (14:09 +0000)
commita9c978a354d236a2cb6eb55ae8ff3dbd2c797960
treea619111b03ac60e6f9c4b8c901edf60d22a30d2f
parent4a22510022fb6b90619620956080a890c3e9856b
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
docs/reference/gio/gio-sections.txt
gio/ChangeLog
gio/gbufferedoutputstream.c
gio/gfilterinputstream.c
gio/gfilterinputstream.h
gio/gfilteroutputstream.c
gio/gfilteroutputstream.h
gio/gio.symbols
gio/tests/.gitignore
gio/tests/Makefile.am
gio/tests/filter-streams.c [new file with mode: 0644]