X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_configuration.h;h=b9c047fa397ed8ad9cedc5c0012b0c861bb55359;hb=7b0dd84fff6c300cab5e0bdbf2a29fb1b3618e62;hp=e65f8b0606b2df1073829f5792678ae4210ed889;hpb=5c4a3d98fdaf1b7afca36612d959cac32a144359;p=vlc diff --git a/include/vlc_configuration.h b/include/vlc_configuration.h index e65f8b0606..b9c047fa39 100644 --- a/include/vlc_configuration.h +++ b/include/vlc_configuration.h @@ -23,10 +23,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#if !defined( __LIBVLC__ ) - #error You are not libvlc or one of its plugins. You cannot include this file -#endif - #ifndef _VLC_CONFIGURATION_H #define _VLC_CONFIGURATION_H 1 @@ -177,22 +173,22 @@ struct module_config_t int i_action; /* actions list size */ /* Misc */ - vlc_mutex_t *p_lock; /* Lock to use when modifying the config */ - bool b_dirty; /* Dirty flag to indicate a config change */ - bool b_advanced; /* Flag to indicate an advanced option */ - bool b_internal; /* Flag to indicate option is not to be shown */ - bool b_restart; /* Flag to indicate the option needs a restart */ + vlc_mutex_t *p_lock; /* Lock to use when modifying the config */ + bool b_dirty; /* Dirty flag to indicate a config change */ + bool b_advanced; /* Flag to indicate an advanced option */ + bool b_internal; /* Flag to indicate option is not to be shown */ + bool b_restart; /* Flag to indicate the option needs a restart */ /* to take effect */ /* Deprecated */ - char *psz_oldname; /* Old option name */ - bool b_removed; + char *psz_oldname; /* Old option name */ + bool b_removed; /* Option values loaded from config file */ - bool b_autosave; /* Config will be auto-saved at exit time */ - bool b_unsaveable; /* Config should not be saved */ + bool b_autosave; /* Config will be auto-saved at exit time */ + bool b_unsaveable; /* Config should not be saved */ - bool b_safe; + bool b_safe; }; /***************************************************************************** @@ -216,6 +212,7 @@ VLC_EXPORT( module_config_t *, config_FindConfig,( vlc_object_t *, const char * VLC_EXPORT(const char *, config_GetDataDir, ( void )); VLC_EXPORT(const char *, config_GetConfDir, ( void ) ); +VLC_EXPORT(const char *, config_GetHomeDir, ( void )); VLC_EXPORT(char *, config_GetUserConfDir, ( void ) ); VLC_EXPORT(char *, config_GetUserDataDir, ( void ) ); VLC_EXPORT(char *, config_GetCacheDir, ( void ) );