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


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.

This function is renamed to g_io_add_watch() in language bindings


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.

 The argument can be NULL.
 The data is owned by the caller of the function.
notify GDestroyNotify

The function to call when the source is removed.

Return value

Returns: guint

The event source id.