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 |
GIOChannel |
A |
|
The data is owned by the caller of the function. | |
priority |
gint |
The priority of the |
|
condition |
GIOCondition |
The condition to watch for. |
|
func |
GIOFunc |
The function to call when the condition is satisfied. |
|
user_data |
gpointer |
User data to pass to |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
notify |
GDestroyNotify |
The function to call when the source is removed. |