Function
GLibunix_fd_source_new
since: 2.36
Description
Creates a GSource
to watch for a particular IO condition on a file descriptor.
The source will never close the fd — you must do it yourself.
Available since: 2.36
Parameters
fd
-
Type:
gint
A file descriptor.
condition
-
Type:
GIOCondition
IO conditions to watch for on
fd
.
Return value
Type: GSource
The newly created GSource
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |