Function

GLibIOFunc

Declaration

gboolean
(* GIOFunc) (
  GIOChannel* source,
  GIOCondition condition,
  gpointer data
)

Description

Specifies the type of function passed to g_io_add_watch() or g_io_add_watch_full(), which is called when the requested condition on a GIOChannel is satisfied.

Parameters

source GIOChannel
 

The GIOChannel event source.

 The data is owned by the caller of the function.
condition GIOCondition
 

The condition which has been satisfied.

data gpointer
 

User data set in g_io_add_watch() or g_io_add_watch_full()

Return value

Returns: gboolean
 

The function should return FALSE if the event source should be removed.