Merge branch 'io-create-watch-docs' into 'master'

giochannel: Clarify type of GSource callback in documentation

See merge request GNOME/glib!1090
This commit is contained in:
Sebastian Dröge 2019-09-06 10:33:53 +00:00
commit 963749da61

View File

@ -596,6 +596,9 @@ g_io_channel_purge (GIOChannel *channel)
* given @channel. For example, if condition is #G_IO_IN, the source will
* be dispatched when there's data available for reading.
*
* The callback function invoked by the #GSource should be added with
* g_source_set_callback(), but it has type #GIOFunc (not #GSourceFunc).
*
* g_io_add_watch() is a simpler interface to this same functionality, for
* the case where you want to add the source to the default main loop context
* at the default priority.