IOChannel.ioAddWatchFull

Adds the glib.IOChannel 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 Source.attach. You can do these steps manually if you need greater control.

class IOChannel
static
uint
ioAddWatchFull

Parameters

channel IOChannel
priority int

the priority of the glib.IOChannel 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 Value

Type: uint

the event source id