Function
GLibio_add_watch_full
Declaration
guint
g_io_add_watch_full (
GIOChannel* channel,
gint priority,
GIOCondition condition,
GIOFunc func,
gpointer user_data,
GDestroyNotify notify
)
Description
Adds the GIOChannel into the default main loop context
with the given priority.
This internally creates a main loop source using g_io_create_watch()
and attaches it to the main loop context with g_source_attach().
You can do these steps manually if you need greater control.
This function is renamed to g_io_add_watch() in language bindings.
Parameters
channel-
Type:
GIOChannelA
GIOChannel.The data is owned by the caller of the function. priority-
Type:
gintThe priority of the
GIOChannelsource. condition-
Type:
GIOConditionThe condition to watch for.
func-
Type:
GIOFuncThe function to call when the condition is satisfied.
user_data-
Type:
gpointerUser data to pass to
func.The argument can be NULL.The data is owned by the caller of the function. notify-
Type:
GDestroyNotifyThe function to call when the source is removed.