IOChannel.ioAddWatchFull

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.

class IOChannel
static
uint
ioAddWatchFull

Parameters

channel IOChannel

a #GIOChannel

priority int

the priority of the #GIOChannel source

condition GIOCondition

the condition to watch for

func GIOFunc

the function to call when the condition is satisfied

userData void*

user data to pass to @func

notify GDestroyNotify

the function to call when the source is removed

Return: the event source id

Meta