void(* mlt_listener)(mlt_properties, void *, mlt_event_data)
event handler when receiving an event message
Definition: mlt_events.h:51
Provides forward definitions of all public types.
void *(* mlt_thread_function_t)(void *)
generic thread function pointer
Definition: mlt_types.h:271
struct mlt_properties_s * mlt_properties
pointer to Properties object
Definition: mlt_types.h:245
An event data structure to convey thread parameters.
Definition: mlt_events.h:39
int * priority
a priority level for the thread
Definition: mlt_events.h:41
void ** thread
a pointer to a thread object or handle as determined by you
Definition: mlt_events.h:40
void * data
an opaque data pointer to pass along
Definition: mlt_events.h:43
A container for data that may be supplied with an event.
Definition: mlt_events.h:30
int mlt_event_data_to_int(mlt_event_data event_data)
Get an integer from the event data.
Definition: mlt_events.c:502
int i
Definition: mlt_events.h:32
void * p
Definition: mlt_events.h:33
mlt_event_data mlt_event_data_from_object(void *value)
Initialize event data with opaque data.
Definition: mlt_events.c:566
void * mlt_event_data_to_object(mlt_event_data event_data)
Get a pointer from the event data.
Definition: mlt_events.c:580
mlt_event_data mlt_event_data_from_string(const char *value)
Initialize event data with a string.
Definition: mlt_events.c:514
mlt_event_data mlt_event_data_from_int(int value)
Initialize event data with an integer.
Definition: mlt_events.c:488
const char * mlt_event_data_to_string(mlt_event_data event_data)
Get a string from the event data.
Definition: mlt_events.c:528
mlt_frame mlt_event_data_to_frame(mlt_event_data event_data)
Get a frame from the event data.
Definition: mlt_events.c:554
mlt_event_data mlt_event_data_from_frame(mlt_frame frame)
Initialize event data with a frame.
Definition: mlt_events.c:540
mlt_event_data mlt_event_data_none()
Initialize an empty event data.
Definition: mlt_events.c:474
Event class.
Definition: mlt_events.c:62
void mlt_event_unblock(mlt_event self)
Decrement the block count on self event.
Definition: mlt_events.c:100
void mlt_event_inc_ref(mlt_event self)
Increment the reference count on self event.
Definition: mlt_events.c:76
void mlt_event_block(mlt_event self)
Increment the block count on self event.
Definition: mlt_events.c:88
void mlt_event_close(mlt_event self)
Close self event.
Definition: mlt_events.c:112
void mlt_events_init(mlt_properties self)
Initialise the events structure.
Definition: mlt_events.c:142
int mlt_events_fire(mlt_properties self, const char *id, mlt_event_data event_data)
Fire an event.
Definition: mlt_events.c:196
mlt_event mlt_events_listen(mlt_properties self, void *listener_data, const char *id, mlt_listener listener)
Register a listener.
Definition: mlt_events.c:230
void mlt_events_wait_for(mlt_properties self, mlt_event event)
Wait for an event.
Definition: mlt_events.c:412
int mlt_events_register(mlt_properties self, const char *id)
Register an event.
Definition: mlt_events.c:168
mlt_event mlt_events_setup_wait_for(mlt_properties self, const char *id)
Prepare to wait for an event.
Definition: mlt_events.c:396
void mlt_events_disconnect(mlt_properties self, void *listener_data)
Disconnect all events for a given listener_data.
Definition: mlt_events.c:345
void mlt_events_close_wait_for(mlt_properties self, mlt_event event)
Cleanup after waiting for an event.
Definition: mlt_events.c:427
void mlt_events_block(mlt_properties self, void *listener_data)
Block all events for a given listener_data.
Definition: mlt_events.c:291
void mlt_events_unblock(mlt_properties self, void *listener_data)
Unblock all events for a given listener_data.
Definition: mlt_events.c:318
Frame class.
Definition: mlt_frame.h:90
Properties class.
Definition: mlt_properties.h:40