Function

GLibio_add_watch_full

Declaration

guint
g_io_add_watch_full (
  GIOChannel* channel,
  gint priority,
  GIOCondition condition,
  GIOFunc func,
  gpointer user_data,
  GDestroyNotify notify
)

Description

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

This internally creates a main loop source using g_io_create_watch() and attaches it to the main loop context with g_source_attach(). You can do these steps manually if you need greater control.

Parameters

channel GIOChannel
 

A GIOChannel.

 The data is owned by the caller of the function.
priority gint
 

The priority of the GIOChannel source.

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.

notify GDestroyNotify
 

The function to call when the source is removed.

Return value

Returns: guint
 

The event source id.