[vlc-devel] commit: Privatize vlc_module_create() ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Jan 27 22:09:56 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Jan 27 22:03:53 2009 +0200| [3a42716912dd1c4f17b46f983c5d698aa5fb808e] | committer: Rémi Denis-Courmont
Privatize vlc_module_create()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3a42716912dd1c4f17b46f983c5d698aa5fb808e
---
include/vlc_plugin.h | 1 -
src/libvlccore.sym | 1 -
src/modules/modules.h | 2 ++
src/modules/os.c | 2 +-
4 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/vlc_plugin.h b/include/vlc_plugin.h
index 7ec1cef..76e630f 100644
--- a/include/vlc_plugin.h
+++ b/include/vlc_plugin.h
@@ -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) );
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 4933f76..a96d9ec 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -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
diff --git a/src/modules/modules.h b/src/modules/modules.h
index 74bc8f7..9d941bf 100644
--- a/src/modules/modules.h
+++ b/src/modules/modules.h
@@ -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))
diff --git a/src/modules/os.c b/src/modules/os.c
index c40986f..4a89127 100644
--- a/src/modules/os.c
+++ b/src/modules/os.c
@@ -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" );
}
More information about the vlc-devel
mailing list