MLT  7.38.0
Multimedia Framework
Data Structures | Typedefs | Functions
mlt_events.h File Reference

event handling More...

#include "mlt_export.h"
#include "mlt_types.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mlt_event_data
 A container for data that may be supplied with an event. More...
 
struct  mlt_event_data_thread
 An event data structure to convey thread parameters. More...
 

Typedefs

typedef void(* mlt_listener) (mlt_properties, void *, mlt_event_data)
 event handler when receiving an event message More...
 

Functions

MLT_EXPORT void mlt_event_block (mlt_event self)
 
MLT_EXPORT void mlt_event_close (mlt_event self)
 
MLT_EXPORT mlt_event_data mlt_event_data_from_frame (mlt_frame)
 
MLT_EXPORT mlt_event_data mlt_event_data_from_int (int value)
 
MLT_EXPORT mlt_event_data mlt_event_data_from_object (void *)
 
MLT_EXPORT mlt_event_data mlt_event_data_from_string (const char *value)
 
MLT_EXPORT mlt_event_data mlt_event_data_none ()
 
MLT_EXPORT mlt_frame mlt_event_data_to_frame (mlt_event_data)
 
MLT_EXPORT int mlt_event_data_to_int (mlt_event_data)
 
MLT_EXPORT void * mlt_event_data_to_object (mlt_event_data)
 
MLT_EXPORT const char * mlt_event_data_to_string (mlt_event_data)
 
MLT_EXPORT void mlt_event_inc_ref (mlt_event self)
 
MLT_EXPORT void mlt_event_unblock (mlt_event self)
 
MLT_EXPORT void mlt_events_block (mlt_properties self, void *listener_data)
 
MLT_EXPORT void mlt_events_close_wait_for (mlt_properties self, mlt_event event)
 
MLT_EXPORT void mlt_events_disconnect (mlt_properties self, void *listener_data)
 
MLT_EXPORT int mlt_events_fire (mlt_properties self, const char *id, mlt_event_data)
 
MLT_EXPORT void mlt_events_init (mlt_properties self)
 
MLT_EXPORT mlt_event mlt_events_listen (mlt_properties self, void *listener_data, const char *id, mlt_listener listener)
 
MLT_EXPORT int mlt_events_register (mlt_properties self, const char *id)
 
MLT_EXPORT mlt_event mlt_events_setup_wait_for (mlt_properties self, const char *id)
 
MLT_EXPORT void mlt_events_unblock (mlt_properties self, void *listener_data)
 
MLT_EXPORT void mlt_events_wait_for (mlt_properties self, mlt_event event)
 

Detailed Description

event handling

See also
mlt_events_struct

Copyright (C) 2004-2026 Meltytech, LLC

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Typedef Documentation

◆ mlt_listener

typedef void(* mlt_listener) (mlt_properties, void *, mlt_event_data)

event handler when receiving an event message

The first argument is the properties object on which the event was registered. The second argument is an opaque pointer to the listener's data. The third argument is an event data object.

Function Documentation

◆ mlt_event_block()

MLT_EXPORT void mlt_event_block ( mlt_event  self)

◆ mlt_event_close()

MLT_EXPORT void mlt_event_close ( mlt_event  self)

◆ mlt_event_data_from_frame()

MLT_EXPORT mlt_event_data mlt_event_data_from_frame ( mlt_frame  )

◆ mlt_event_data_from_int()

MLT_EXPORT mlt_event_data mlt_event_data_from_int ( int  value)

◆ mlt_event_data_from_object()

MLT_EXPORT mlt_event_data mlt_event_data_from_object ( void *  )

◆ mlt_event_data_from_string()

MLT_EXPORT mlt_event_data mlt_event_data_from_string ( const char *  value)

◆ mlt_event_data_none()

MLT_EXPORT mlt_event_data mlt_event_data_none ( )

◆ mlt_event_data_to_frame()

MLT_EXPORT mlt_frame mlt_event_data_to_frame ( mlt_event_data  )

◆ mlt_event_data_to_int()

MLT_EXPORT int mlt_event_data_to_int ( mlt_event_data  )

◆ mlt_event_data_to_object()

MLT_EXPORT void* mlt_event_data_to_object ( mlt_event_data  )

◆ mlt_event_data_to_string()

MLT_EXPORT const char* mlt_event_data_to_string ( mlt_event_data  )

◆ mlt_event_inc_ref()

MLT_EXPORT void mlt_event_inc_ref ( mlt_event  self)

◆ mlt_event_unblock()

MLT_EXPORT void mlt_event_unblock ( mlt_event  self)

◆ mlt_events_block()

MLT_EXPORT void mlt_events_block ( mlt_properties  self,
void *  listener_data 
)

◆ mlt_events_close_wait_for()

MLT_EXPORT void mlt_events_close_wait_for ( mlt_properties  self,
mlt_event  event 
)

◆ mlt_events_disconnect()

MLT_EXPORT void mlt_events_disconnect ( mlt_properties  self,
void *  listener_data 
)

◆ mlt_events_fire()

MLT_EXPORT int mlt_events_fire ( mlt_properties  self,
const char *  id,
mlt_event_data   
)

◆ mlt_events_init()

MLT_EXPORT void mlt_events_init ( mlt_properties  self)

◆ mlt_events_listen()

MLT_EXPORT mlt_event mlt_events_listen ( mlt_properties  self,
void *  listener_data,
const char *  id,
mlt_listener  listener 
)

◆ mlt_events_register()

MLT_EXPORT int mlt_events_register ( mlt_properties  self,
const char *  id 
)

◆ mlt_events_setup_wait_for()

MLT_EXPORT mlt_event mlt_events_setup_wait_for ( mlt_properties  self,
const char *  id 
)

◆ mlt_events_unblock()

MLT_EXPORT void mlt_events_unblock ( mlt_properties  self,
void *  listener_data 
)

◆ mlt_events_wait_for()

MLT_EXPORT void mlt_events_wait_for ( mlt_properties  self,
mlt_event  event 
)