From aefe3ed80c4422e50ff0dd753b4395264203a1b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 16 Aug 2007 19:34:26 +0000 Subject: [PATCH] Do not export thread init functions. They should not be used by plugins. And in fact, they are not. --- include/vlc_threads_funcs.h | 2 -- src/libvlc.h | 21 ++++++++++++++++++--- src/libvlc.sym | 2 -- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/include/vlc_threads_funcs.h b/include/vlc_threads_funcs.h index 269287b69c..b4822bce99 100644 --- a/include/vlc_threads_funcs.h +++ b/include/vlc_threads_funcs.h @@ -35,8 +35,6 @@ /***************************************************************************** * Function definitions *****************************************************************************/ -VLC_EXPORT( int, __vlc_threads_init, ( vlc_object_t * ) ); -VLC_EXPORT( int, __vlc_threads_end, ( vlc_object_t * ) ); VLC_EXPORT( int, __vlc_mutex_init, ( vlc_object_t *, vlc_mutex_t * ) ); VLC_EXPORT( int, __vlc_mutex_destroy, ( const char *, int, vlc_mutex_t * ) ); VLC_EXPORT( int, __vlc_cond_init, ( vlc_object_t *, vlc_cond_t * ) ); diff --git a/src/libvlc.h b/src/libvlc.h index e7a9265782..6013b84dd1 100644 --- a/src/libvlc.h +++ b/src/libvlc.h @@ -33,6 +33,24 @@ extern const size_t libvlc_config_count; extern const struct hotkey libvlc_hotkeys[]; extern const size_t libvlc_hotkeys_size; + +/* + * Threads subsystem + */ +int __vlc_threads_init( vlc_object_t * ); +int __vlc_threads_end( vlc_object_t * ); + +/* + * CPU capabilities + */ +extern uint32_t cpu_flags; +uint32_t CPUCapabilities( void ); + + +/* + * LibVLC objects stuff + */ + extern vlc_object_t * vlc_custom_create (vlc_object_t *p_this, size_t i_size, int i_type, const char *psz_type); @@ -76,9 +94,6 @@ struct libvlc_global_data_t libvlc_global_data_t *vlc_global (void); -extern uint32_t cpu_flags; -uint32_t CPUCapabilities( void ); - /* Private LibVLC data for each objects */ struct vlc_object_internals_t { diff --git a/src/libvlc.sym b/src/libvlc.sym index 263b4c5d22..498a13eedd 100644 --- a/src/libvlc.sym +++ b/src/libvlc.sym @@ -390,9 +390,7 @@ vlc_strndup __vlc_thread_create __vlc_thread_join __vlc_thread_ready -__vlc_threads_end __vlc_thread_set_priority -__vlc_threads_init vlc_ureduce vlc_vasprintf VLC_Version -- 2.39.2