4.24 GPollFunc

Callback: GPollFunc

A procedure given for it is called as (procedure ufds nfsd timeout-) ⇒ %return.

Specifies the type of function passed to g_main_context_set_poll_func(). The semantics of the function should match those of the poll() system call.

ufds

Passed: a <GPollFD>.

an array of <GPollFD> elements

nfsd

Passed: an unsigned 32-bit integer.

the number of elements in ufds

timeout-

Passed: a 32-bit integer.

the maximum time to wait for an event of the file descriptors. A negative value indicates an infinite timeout.

%return

Returned: a 32-bit integer.

the number of <GPollFD> elements which have events or errors reported, or -1 if an error occurred.