UnixUtils.fdAddFull

Sets a function to be called when the IO condition, as specified by @condition becomes true for @fd.

This is the same as g_unix_fd_add(), except that it allows you to specify a non-default priority and a provide a #GDestroyNotify for @user_data.

struct UnixUtils
static
uint
fdAddFull

Parameters

priority int

the priority of the source

fd int

a file descriptor

condition GIOCondition

IO conditions to watch for on @fd

function_ GUnixFDSourceFunc

a #GUnixFDSourceFunc

userData void*

data to pass to @function

notify GDestroyNotify

function to call when the idle is removed, or %NULL

Return Value

Type: uint

the ID (greater than 0) of the event source

Meta

Since

2.36