MLT
7.28.0
|
Events class. More...
Public Member Functions | |
void | mlt_events_block (mlt_properties self, void *listener_data) |
Block all events for a given listener_data. More... | |
void | mlt_events_close_wait_for (mlt_properties self, mlt_event event) |
Cleanup after waiting for an event. More... | |
void | mlt_events_disconnect (mlt_properties self, void *listener_data) |
Disconnect all events for a given listener_data. More... | |
int | mlt_events_fire (mlt_properties self, const char *id, mlt_event_data event_data) |
Fire an event. More... | |
void | mlt_events_init (mlt_properties self) |
Initialise the events structure. More... | |
mlt_event | mlt_events_listen (mlt_properties self, void *listener_data, const char *id, mlt_listener listener) |
Register a listener. More... | |
int | mlt_events_register (mlt_properties self, const char *id) |
Register an event. More... | |
mlt_event | mlt_events_setup_wait_for (mlt_properties self, const char *id) |
Prepare to wait for an event. More... | |
void | mlt_events_unblock (mlt_properties self, void *listener_data) |
Unblock all events for a given listener_data. More... | |
void | mlt_events_wait_for (mlt_properties self, mlt_event event) |
Wait for an event. More... | |
Data Fields | |
mlt_properties | listeners |
mlt_properties | owner |
Private Member Functions | |
static void | mlt_events_close (mlt_events events) |
Close the events object. More... | |
static mlt_events | mlt_events_fetch (mlt_properties self) |
Fetch the events object. More... | |
static void | mlt_events_listen_for (mlt_properties self, condition_pair *pair) |
The event listener callback for the wait functions. More... | |
Events class.
Events provide messages and notifications between services and the application. A service can register an event and fire/send it upon certain conditions or times. Likewise, a service or an application can listen/receive specific events on specific services.
void mlt_events_block | ( | mlt_properties | self, |
void * | listener_data | ||
) |
Block all events for a given listener_data.
self | a properties list |
listener_data | the listener's opaque data pointer |
|
private |
Close the events object.
events | an events object |
void mlt_events_close_wait_for | ( | mlt_properties | self, |
mlt_event | event | ||
) |
Cleanup after waiting for an event.
self | a properties list |
event | an event |
void mlt_events_disconnect | ( | mlt_properties | self, |
void * | listener_data | ||
) |
Disconnect all events for a given listener_data.
self | a properties list |
listener_data | the listener's opaque data pointer |
|
private |
Fetch the events object.
self | a properties list |
int mlt_events_fire | ( | mlt_properties | self, |
const char * | id, | ||
mlt_event_data | event_data | ||
) |
Fire an event.
self | a properties list |
id | the name of an event |
event_data | an event data object |
void mlt_events_init | ( | mlt_properties | self | ) |
Initialise the events structure.
self | a properties list |
mlt_event mlt_events_listen | ( | mlt_properties | self, |
void * | listener_data, | ||
const char * | id, | ||
mlt_listener | listener | ||
) |
Register a listener.
self | a properties list |
listener_data | an opaque pointer |
id | the name of the event to listen for |
listener | the callback to receive an event message |
|
private |
The event listener callback for the wait functions.
self | a properties list |
pair | a condition pair |
int mlt_events_register | ( | mlt_properties | self, |
const char * | id | ||
) |
Register an event.
self | a properties list |
id | the name of an event |
mlt_event mlt_events_setup_wait_for | ( | mlt_properties | self, |
const char * | id | ||
) |
Prepare to wait for an event.
self | a properties list |
id | the name of the event to wait for |
void mlt_events_unblock | ( | mlt_properties | self, |
void * | listener_data | ||
) |
Unblock all events for a given listener_data.
self | a properties list |
listener_data | the listener's opaque data pointer |
void mlt_events_wait_for | ( | mlt_properties | self, |
mlt_event | event | ||
) |
Wait for an event.
self | a properties list |
event | an event |
mlt_properties mlt_events_struct::listeners |
mlt_properties mlt_events_struct::owner |