Collaboration diagram for libvlc_event:
|
| typedef void( *) libvlc_callback_t(const libvlc_event_t *, void *) |
Callback function notification.
| p_event | the event triggering the callback |
| typedef struct libvlc_event_manager_t libvlc_event_manager_t |
Event manager that belongs to a libvlc object, and from whom events can be received.
| enum libvlc_event_type_t |
| void libvlc_event_attach | ( | libvlc_event_manager_t * | p_event_manager, | |
| libvlc_event_type_t | i_event_type, | |||
| libvlc_callback_t | f_callback, | |||
| void * | user_data, | |||
| libvlc_exception_t * | p_e | |||
| ) |
Register for an event notification.
| p_event_manager | the event manager to which you want to attach to. Generally it is obtained by vlc_my_object_event_manager() where my_object is the object you want to listen to. | |
| i_event_type | the desired event to which we want to listen | |
| f_callback | the function to call when i_event_type occurs | |
| user_data | user provided data to carry with the event | |
| p_e | an initialized exception pointer |
| void libvlc_event_detach | ( | libvlc_event_manager_t * | p_event_manager, | |
| libvlc_event_type_t | i_event_type, | |||
| libvlc_callback_t | f_callback, | |||
| void * | p_user_data, | |||
| libvlc_exception_t * | p_e | |||
| ) |
Unregister an event notification.
| p_event_manager | the event manager | |
| i_event_type | the desired event to which we want to unregister | |
| f_callback | the function to call when i_event_type occurs | |
| p_user_data | user provided data to carry with the event | |
| p_e | an initialized exception pointer |
| const char* libvlc_event_type_name | ( | libvlc_event_type_t | event_type | ) |
Get an event's type name.
| i_event_type | the desired event |
1.5.1