MLT 7.40.0
Multimedia Framework
mlt_events.h
Go to the documentation of this file.
1
23#ifndef MLT_EVENTS_H
24#define MLT_EVENTS_H
25
26#include "mlt_export.h"
27#include "mlt_types.h"
28
30typedef struct
31{
32 union {
33 int i;
34 void *p;
35 } u;
37
46
53typedef void (*mlt_listener)(mlt_properties, void *, mlt_event_data);
54
55MLT_EXPORT void mlt_events_init(mlt_properties self);
56MLT_EXPORT int mlt_events_register(mlt_properties self, const char *id);
57MLT_EXPORT int mlt_events_fire(mlt_properties self, const char *id, mlt_event_data);
59 void *listener_data,
60 const char *id,
61 mlt_listener listener);
62MLT_EXPORT void mlt_events_block(mlt_properties self, void *listener_data);
63MLT_EXPORT void mlt_events_unblock(mlt_properties self, void *listener_data);
64MLT_EXPORT void mlt_events_disconnect(mlt_properties self, void *listener_data);
65
66MLT_EXPORT mlt_event mlt_events_setup_wait_for(mlt_properties self, const char *id);
67MLT_EXPORT void mlt_events_wait_for(mlt_properties self, mlt_event event);
69
70MLT_EXPORT void mlt_event_inc_ref(mlt_event self);
71MLT_EXPORT void mlt_event_block(mlt_event self);
72MLT_EXPORT void mlt_event_unblock(mlt_event self);
73MLT_EXPORT void mlt_event_close(mlt_event self);
74
78MLT_EXPORT mlt_event_data mlt_event_data_from_string(const char *value);
84
85#endif
MLT_EXPORT mlt_event_data mlt_event_data_from_string(const char *value)
MLT_EXPORT void mlt_events_block(mlt_properties self, void *listener_data)
MLT_EXPORT mlt_event_data mlt_event_data_from_int(int value)
MLT_EXPORT mlt_event mlt_events_setup_wait_for(mlt_properties self, const char *id)
MLT_EXPORT int mlt_events_register(mlt_properties self, const char *id)
MLT_EXPORT mlt_event_data mlt_event_data_none()
MLT_EXPORT mlt_event_data mlt_event_data_from_object(void *)
MLT_EXPORT void * mlt_event_data_to_object(mlt_event_data)
MLT_EXPORT void mlt_events_wait_for(mlt_properties self, mlt_event event)
MLT_EXPORT void mlt_event_unblock(mlt_event self)
MLT_EXPORT void mlt_events_close_wait_for(mlt_properties self, mlt_event event)
MLT_EXPORT int mlt_events_fire(mlt_properties self, const char *id, mlt_event_data)
MLT_EXPORT mlt_event mlt_events_listen(mlt_properties self, void *listener_data, const char *id, mlt_listener listener)
void(* mlt_listener)(mlt_properties, void *, mlt_event_data)
event handler when receiving an event message
Definition mlt_events.h:53
MLT_EXPORT void mlt_events_disconnect(mlt_properties self, void *listener_data)
MLT_EXPORT mlt_event_data mlt_event_data_from_frame(mlt_frame)
MLT_EXPORT mlt_frame mlt_event_data_to_frame(mlt_event_data)
MLT_EXPORT void mlt_event_block(mlt_event self)
MLT_EXPORT int mlt_event_data_to_int(mlt_event_data)
MLT_EXPORT void mlt_events_unblock(mlt_properties self, void *listener_data)
MLT_EXPORT const char * mlt_event_data_to_string(mlt_event_data)
MLT_EXPORT void mlt_event_close(mlt_event self)
MLT_EXPORT void mlt_events_init(mlt_properties self)
MLT_EXPORT void mlt_event_inc_ref(mlt_event self)
Provides forward definitions of all public types.
void *(* mlt_thread_function_t)(void *)
generic thread function pointer
Definition mlt_types.h:309
struct mlt_properties_s * mlt_properties
pointer to Properties object
Definition mlt_types.h:283
An event data structure to convey thread parameters.
Definition mlt_events.h:40
int * priority
a priority level for the thread
Definition mlt_events.h:42
void ** thread
a pointer to a thread object or handle as determined by you
Definition mlt_events.h:41
mlt_thread_function_t function
a pointer to the function that thread will run
Definition mlt_events.h:43
void * data
an opaque data pointer to pass along
Definition mlt_events.h:44
A container for data that may be supplied with an event.
Definition mlt_events.h:31
int i
Definition mlt_events.h:33
void * p
Definition mlt_events.h:34
Event class.
Definition mlt_events.c:62
Frame class.
Definition mlt_frame.h:91
Properties class.
Definition mlt_properties.h:41