Commit 3a427169 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Privatize vlc_module_create()

parent 6fc5c512
......@@ -29,7 +29,6 @@
* This file implements plugin (module) macros used to define a vlc module.
*/
VLC_EXPORT( module_t *, vlc_module_create, ( vlc_object_t * ) );
VLC_EXPORT( module_t *, vlc_submodule_create, ( module_t * ) );
VLC_EXPORT( int, vlc_module_set, (module_t *module, int propid, ...) );
VLC_EXPORT( module_config_t *, vlc_config_create, (module_t *, int type) );
......
......@@ -473,7 +473,6 @@ __vlc_list_children
vlc_list_release
vlc_memcpy
vlc_memset
vlc_module_create
vlc_module_set
vlc_mutex_destroy
vlc_mutex_init
......
......@@ -146,6 +146,8 @@ struct module_t
bool b_loaded; /* Set to true if the dll is loaded */
};
module_t *vlc_module_create (vlc_object_t *);
#define module_InitBank(a) __module_InitBank(VLC_OBJECT(a))
void __module_InitBank ( vlc_object_t * );
#define module_LoadBuiltins(a) __module_LoadBuiltins(VLC_OBJECT(a))
......
......@@ -133,7 +133,7 @@ int module_Call( vlc_object_t *obj, module_t *p_module )
/* Make sure libvlccore is in the global namespace */
static void load_libvlccore( void )
{
if( !dlsym( RTLD_DEFAULT, "vlc_module_create" )
if( !dlsym( RTLD_DEFAULT, "libvlc_Quit" )
&& !dlopen( "libvlccore.so", RTLD_GLOBAL|RTLD_NOLOAD ) )
fprintf( stderr, "ERROR: failed loading libvlccore\n" );
}
......
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