X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Flibvlc.h;h=334b74442ebf01283388fea49e04b16251450c60;hb=ba313f65a5ec03f6b35dca75edae74e87db84af0;hp=cb963e617cd08690a9c820aa681f6a716088b6c4;hpb=ace8caefad8be422bc4b478d4c8b2474189801f0;p=vlc diff --git a/src/libvlc.h b/src/libvlc.h index cb963e617c..334b74442e 100644 --- a/src/libvlc.h +++ b/src/libvlc.h @@ -118,7 +118,6 @@ void msg_StackDestroy (void *); * Unicode stuff */ char *vlc_fix_readdir (const char *); -bool vlc_current_charset (char **); /* * LibVLC objects stuff @@ -139,8 +138,10 @@ bool vlc_current_charset (char **); * @return the created object, or NULL. */ extern void * -vlc_custom_create (vlc_object_t *p_this, size_t i_size, int i_type, - const char *psz_type); +__vlc_custom_create (vlc_object_t *p_this, size_t i_size, int i_type, + const char *psz_type); +#define vlc_custom_create(o, s, t, n) \ + __vlc_custom_create(VLC_OBJECT(o), s, t, n) /** * libvlc_global_data_t (global variable) @@ -221,6 +222,8 @@ vlc_object_signal_maybe (vlc_object_t *p_this) */ typedef struct libvlc_priv_t { + libvlc_int_t public_data; + /* Configuration */ vlc_mutex_t config_lock; ///< config file lock char * psz_configfile; ///< location of config file @@ -253,16 +256,11 @@ typedef struct libvlc_priv_t /* Private playlist data (FIXME - playlist_t is too public...) */ sout_instance_t *p_sout; ///< kept sout instance (for playlist) - - /* Thread support */ - unsigned threads_count; - vlc_mutex_t threads_lock; - vlc_cond_t threads_wait; } libvlc_priv_t; static inline libvlc_priv_t *libvlc_priv (libvlc_int_t *libvlc) { - return (libvlc_priv_t *)(libvlc + 1); + return (libvlc_priv_t *)libvlc; } void playlist_ServicesDiscoveryKillAll( playlist_t *p_playlist );