add_watch_full
Description:
[ CCode ( cname = "g_io_add_watch_full" ) ]
public uint add_watch_full (int priority, IOCondition condition, owned IOFunc func)
public uint add_watch_full (int priority, IOCondition condition, owned IOFunc func)
Adds the IOChannel into the default main loop context with the given priority.
This internally creates a main loop source using IOSource and attaches it to the main loop context with attach. You can do these steps manually if you need greater control.
Parameters:
priority |
the priority of the IOChannel source |
condition |
the condition to watch for |
func |
the function to call when the condition is satisfied |
channel | |
notify |
the function to call when the source is removed |
user_data |
user data to pass to |
Returns:
the event source id |