Commit f047a976 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_list_view.c: Provide media_list_view_event_manager().

parent ee3e8c96
......@@ -550,6 +550,9 @@ VLC_PUBLIC_API void
VLC_PUBLIC_API void
libvlc_media_list_view_release( libvlc_media_list_view_t * p_mlv );
VLC_PUBLIC_API libvlc_event_manager_t *
libvlc_media_list_view_event_manager( libvlc_media_list_view_t * p_mlv );
VLC_PUBLIC_API int
libvlc_media_list_view_count( libvlc_media_list_view_t * p_mlv,
libvlc_exception_t * p_e );
......
......@@ -272,6 +272,19 @@ libvlc_media_list_view_release( libvlc_media_list_view_t * p_mlv )
vlc_mutex_destroy( &p_mlv->object_lock );
}
/**************************************************************************
* libvlc_media_list_view_event_manager (Public)
**************************************************************************/
libvlc_event_manager_t *
libvlc_media_list_view_event_manager( libvlc_media_list_view_t * p_mlv )
{
libvlc_event_manager_t * p_em;
vlc_mutex_lock( &p_mlv->object_lock );
p_em = p_mlv->p_event_manager;
vlc_mutex_unlock( &p_mlv->object_lock );
return p_em;
}
/* Limited to four args, because it should be enough */
#define AN_SELECT( collapser, dec1, dec2, dec3, dec4, p, ...) p
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment