BusFunc


Description:

[ 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.

Parameters:

bus

the Bus that sent the message

message

the Message

user_data

user data that has been given, when registering the handler

Returns:

false if the event source should be removed.


Namespace: Gst
Package: gstreamer-1.0



2022 vala-language.org