add_watch


Description:

[ CCode ( cname = "g_io_add_watch" ) ]
public uint add_watch (IOCondition condition, IOFunc func)

Adds the IOChannel into the default main loop context with the default priority.

Parameters:

condition

the condition to watch for

func

the function to call when the condition is satisfied

channel

a IOChannel

user_data

user data to pass to func

Returns:

the event source id