[ CCode ( instance_pos = 2.9 ) ]
public delegate bool BusFunc (Bus bus, Message message)
Specifies the type of function passed to gst_bus_add_watch
or add_watch,
which is called from the mainloop when a message is available on the bus.
The message passed to the function will be unreffed after execution of this function so it should not be freed in the function.
Note that this function is used as a SourceFunc which means that returning false
will remove
the SignalSource from the mainloop.
bus |
the Bus that sent the message |
message |
the Message |
user_data |
user data that has been given, when registering the handler |
|