Function

GLibio_add_watch

Declaration

guint
g_io_add_watch (
  GIOChannel* channel,
  GIOCondition condition,
  GIOFunc func,
  gpointer user_data
)

Description

Adds the GIOChannel into the default main loop context with the default priority.

Parameters

channel GIOChannel
 

A GIOChannel.

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

The condition to watch for.

func GIOFunc
 

The function to call when the condition is satisfied.

user_data gpointer
 

User data to pass to func.

Return value

Returns: guint
 

The event source id.