From: RĂ©mi Denis-Courmont Date: Thu, 1 May 2008 19:17:21 +0000 (+0300) Subject: Put msg_context_global_key to the internal header. X-Git-Tag: 0.9.0-test0~1259 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6673258639e376114376094236a511d03be5a95e;p=vlc Put msg_context_global_key to the internal header. It was not exported from libvlc anyhow. --- diff --git a/include/vlc_common.h b/include/vlc_common.h index a0f7a3d066..606ba438c1 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -1004,14 +1004,6 @@ VLC_EXPORT( const char *, VLC_Changeset, ( void ) ); #include "main.h" #include "vlc_configuration.h" -/** The global thread var for msg stack context - * We store this as a static global variable so we don't need a vlc_object_t - * everywhere. - * This key is created in vlc_threads_init and is therefore ready to use at - * the very beginning of the universe */ -extern vlc_threadvar_t msg_context_global_key; - - #if defined( WIN32 ) || defined( UNDER_CE ) # define DIR_SEP_CHAR '\\' # define DIR_SEP "\\" diff --git a/src/libvlc.h b/src/libvlc.h index da25c7d6a7..b3dff5e366 100644 --- a/src/libvlc.h +++ b/src/libvlc.h @@ -59,6 +59,13 @@ VLC_EXPORT( const char * , system_VLCPath, (void)); int __vlc_threads_init( vlc_object_t * ); int __vlc_threads_end( vlc_object_t * ); +/** The global thread var for msg stack context + * We store this as a static global variable so we don't need a vlc_object_t + * everywhere. + * This key is created in vlc_threads_init and is therefore ready to use at + * the very beginning of the universe */ +extern vlc_threadvar_t msg_context_global_key; + /* * CPU capabilities */ diff --git a/src/misc/messages.c b/src/misc/messages.c index 5f64faf3eb..ed17b87c8c 100644 --- a/src/misc/messages.c +++ b/src/misc/messages.c @@ -53,6 +53,7 @@ #include #include +#include "../libvlc.h" /***************************************************************************** * Local macros