Commit 2dffeb14 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_global_object: return the global (process-wide) LibVLC object

It is mostly useful to register global mutexes and such things.
parent de5fe999
......@@ -109,6 +109,7 @@ VLC_EXPORT( void, __vlc_object_release, ( vlc_object_t * ) );
VLC_EXPORT( vlc_list_t *, __vlc_list_find, ( vlc_object_t *, int, int ) );
VLC_EXPORT( void, vlc_list_release, ( vlc_list_t * ) );
VLC_EXPORT( libvlc_int_t *, vlc_current_object, ( int ) );
VLC_EXPORT( vlc_object_t *, vlc_global_object, ( void ) );
/*}@*/
......
......@@ -122,6 +122,11 @@ static int VerboseCallback( vlc_object_t *, char const *,
static void InitDeviceValues( libvlc_int_t * );
vlc_object_t * vlc_global_object( void )
{
return VLC_OBJECT( &libvlc_global );
}
/*****************************************************************************
* vlc_current_object: return the current object.
*****************************************************************************
......
......@@ -362,6 +362,7 @@ VLC_VariableSet
__vlc_cond_destroy
__vlc_cond_init
vlc_current_object
vlc_global_object
vlc_error
VLC_Error
__vlc_execve
......
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