Function

GLibunix_fd_source_new

Declaration [src]

GSource*
g_unix_fd_source_new (
  gint fd,
  GIOCondition condition
)

Description [src]

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 gint
 

A file descriptor.

condition GIOCondition
 

IO conditions to watch for on fd.

Return value

Returns: GSource
 

The newly created GSource.

 The caller of the function takes ownership of the data, and is responsible for freeing it.