Function

GLib-2.0GLibio_add_watch

  • Adds the GLib.IOChannel 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

    Returns number

    the event source id