VLC  4.0.0-dev
events.c File Reference
Include dependency graph for events.c:

Data Structures

struct  vlc_event_listener_t
 

Typedefs

typedef struct vlc_event_listener_t vlc_event_listener_t
 

Functions

void vlc_event_manager_init (vlc_event_manager_t *p_em, void *p_obj)
 Initialize event manager object p_obj is the object that contains the event manager. More...
 
void vlc_event_manager_fini (vlc_event_manager_t *p_em)
 Destroy the event manager. More...
 
void vlc_event_send (vlc_event_manager_t *p_em, vlc_event_t *p_event)
 Send an event to the listener attached to this p_em. More...
 
int vlc_event_attach (vlc_event_manager_t *p_em, vlc_event_type_t event_type, vlc_event_callback_t pf_callback, void *p_user_data)
 Add a callback for an event. More...
 
void vlc_event_detach (vlc_event_manager_t *p_em, vlc_event_type_t event_type, vlc_event_callback_t pf_callback, void *p_user_data)
 Remove a callback for an event. More...
 

Typedef Documentation

◆ vlc_event_listener_t

Function Documentation

◆ vlc_event_attach()

◆ vlc_event_detach()

◆ vlc_event_manager_fini()

void vlc_event_manager_fini ( vlc_event_manager_t p_em)

◆ vlc_event_manager_init()

void vlc_event_manager_init ( vlc_event_manager_t p_em,
void *  p_obj 
)

Initialize event manager object p_obj is the object that contains the event manager.

But not necessarily a vlc_object_t (an input_item_t is not a vlc_object_t for instance).

References ARRAY_INIT, ARRAY_SIZE, vlc_event_manager_t::events, vlc_event_listeners_group_t::listeners, vlc_event_manager_t::lock, vlc_event_manager_t::p_obj, and vlc_mutex_init_recursive().

Referenced by input_item_NewExt().

◆ vlc_event_send()