add a ref_count field. (soup_transfer_read, create_writer): Set initial
authorDan Winship <danw@src.gnome.org>
Tue, 17 Jun 2003 12:24:12 +0000 (12:24 +0000)
committerDan Winship <danw@src.gnome.org>
Tue, 17 Jun 2003 12:24:12 +0000 (12:24 +0000)
commit3fbd8f244df16177520a646f8971372cb43bed30
treea74230ef60f3003ca08e012008951243b129b9b6
parent4e3273e3e08c693fdff3d2fc85d3cfc50f2918b2
add a ref_count field. (soup_transfer_read, create_writer): Set initial

        * libsoup/soup-transfer.c (SoupReader, SoupWriter): add a
        ref_count field.
        (soup_transfer_read, create_writer): Set initial ref_count to 2
        (one for soup-transfer, one for the caller).
        (soup_transfer_read_ref, soup_transfer_read_unref): ref/unref a
        reader
        (soup_transfer_read_stop): Clears the GIOChannel callbacks and
        drops soup-transfer's ref.
        (soup_transfer_read_cancel): Now just a stop+unref
        (soup_transfer_write_ref, soup_transfer_write_unref,
        soup_transfer_write_stop, soup_transfer_write_cancel): Similarly.

        * libsoup/soup-message.c (soup_message_cleanup): when setting up
        the "finish reading" callbacks, unref the reader so it will be
        destroyed once it's done reading.
        (soup_message_requeue): Likewise.

        * libsoup/soup-queue.c (soup_queue_read_headers_cb): Update for
        prototype change (no longer returns a SoupTransferDone).
        (soup_queue_read_chunk_cb): Likewise.

        * libsoup/soup-server.c (read_headers_cb): Likewise
ChangeLog
libsoup/soup-message.c
libsoup/soup-queue.c
libsoup/soup-server.c
libsoup/soup-transfer.c
libsoup/soup-transfer.h