[ CCode ( cname = "gst_bus_add_signal_watch_full" ) ]
public void add_signal_watch (int priority = DEFAULT)

Adds a bus signal watch to the default main context with the given priority (e.g. DEFAULT).

It is also possible to use a non-default main context set up using push_thread_default (before one had to create a bus watch source and attach it to the desired main context 'manually').

After calling this statement, the bus will emit the "message" signal for each message posted on the bus when the MainLoop is running.

This function may be called multiple times. To clean up, the caller is responsible for calling remove_signal_watch as many times as this function is called.

There can only be a single bus watch per bus, you must remove any signal watch before you can set another type of watch.



a Bus on which you want to receive the "message" signal


The priority of the watch.