GCancellable: add g_cancellable_create_source()
authorDan Winship <danw@gnome.org>
Sat, 6 Nov 2010 19:49:55 +0000 (15:49 -0400)
committerDan Winship <danw@gnome.org>
Fri, 26 Nov 2010 20:07:28 +0000 (15:07 -0500)
commit6181c7de36771d4d3bb55785912a934e078b16df
treed26b2f688a1c6002775a91b380a1ed1fa11fe2c5
parentd15cdbefecc235cfa431ee7de9c35af174bd1552
GCancellable: add g_cancellable_create_source()

g_cancellable_create_source() returns a GSource that triggers when its
corresponding GCancellable is cancelled. This can be used with
g_source_add_child_source() to add cancellability to a source.

Port gasynchelper's FDSource to use this rather than doing its own
cancellable handling, and also fix up its callback argument order to
be more normal.

https://bugzilla.gnome.org/show_bug.cgi?id=634239
docs/reference/gio/gio-sections.txt
gio/gasynchelper.c
gio/gcancellable.c
gio/gcancellable.h
gio/gio.symbols
gio/giotypes.h