Function
GLibio_add_watch
Declaration
guint
g_io_add_watch (
GIOChannel* channel,
GIOCondition condition,
GIOFunc func,
gpointer user_data
)
Description
Adds the GIOChannel into the default main loop context
with the default priority.
This function is not directly available to language bindings.
The implementation of this function is provided by g_io_add_watch_full() in language bindings.
Parameters
channel-
Type:
GIOChannelA
GIOChannel.The data is owned by the caller of the function. 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.