### Function

# GLib io_add_watch_full

#### Declaration [src]

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

#### Description [src]

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.

#### Parameters

`channel`

  Type: `GIOChannel`

  A `GIOChannel`.

  The data is owned by the caller of the function.

`priority`

  Type: `gint`

  The priority of the `GIOChannel` source.

`condition`

  Type: `GIOCondition`

  The condition to watch for.

`func`

  Type: `GIOFunc`

  The function to call when the condition is satisfied.

`user_data`

  Type: `gpointer`

  User data to pass to `func`.

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

`notify`

  Type: `GDestroyNotify`

  The function to call when the source is removed.

#### Return value

Type: `guint`

The event source id.