4.21 GIOFunc

Callback: GIOFunc

A procedure given for it is called as (procedure source condition) ⇒ %return. If the function that it is given to has no user data for it, it is also passed data, last.

Specifies the type of function passed to io-add-watch or g_io_add_watch_full(), which is called when the requested condition on a <GIOChannel> is satisfied.

source

Passed: a <GIOChannel>.

the <GIOChannel> event source

condition

Passed: a <GIOCondition>.

the condition which has been satisfied

%return

Returned: a boolean.

the function should return #f if the event source should be removed

data

Not passed: it is the user data that guile-gi supplied.

user data set in io-add-watch or g_io_add_watch_full()