Function
GLibunix_fd_add_full
since: 2.36
Declaration [src]
guint
g_unix_fd_add_full (
gint priority,
gint fd,
GIOCondition condition,
GUnixFDSourceFunc function,
gpointer user_data,
GDestroyNotify notify
)
Description [src]
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.
Available since: 2.36
Parameters
priority-
Type:
gintThe priority of the source.
fd-
Type:
gintA file descriptor.
condition-
Type:
GIOConditionIO conditions to watch for on
fd. function-
Type:
GUnixFDSourceFuncA
GUnixFDSourceFunc. user_data-
Type:
gpointerData to pass to
function.The argument can be NULL.The data is owned by the caller of the function. notify-
Type:
GDestroyNotifyFunction to call when the idle is removed, or
NULL.