mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 13:26:16 +01:00
giochannel: Clarify type of GSource callback in documentation
This should clarify questions like https://stackoverflow.com/q/57807738/2931197. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
f7eed7eabd
commit
f02c6eb514
@ -596,6 +596,9 @@ g_io_channel_purge (GIOChannel *channel)
|
|||||||
* given @channel. For example, if condition is #G_IO_IN, the source will
|
* given @channel. For example, if condition is #G_IO_IN, the source will
|
||||||
* be dispatched when there's data available for reading.
|
* 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
|
* 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
|
* the case where you want to add the source to the default main loop context
|
||||||
* at the default priority.
|
* at the default priority.
|
||||||
|
Loading…
Reference in New Issue
Block a user