unixFdAddFull
fn
uint unixFdAddFull(int priority, int fd, glib.types.IOCondition condition, glib.types.UnixFDSourceFunc function_)Sets a function to be called when the IO condition, as specified by condition becomes true for fd.
This is the same as [glib.global.unixFdAdd], except that it allows you to specify a non-default priority and a provide a #GDestroyNotify for user_data.
Parameters
priority | the priority of the source |
fd | a file descriptor |
condition | IO conditions to watch for on fd |
function_ | a #GUnixFDSourceFunc |
Returns
the ID (greater than 0) of the event source