]> git.sesse.net Git - vlc/blobdiff - include/vlc_configuration.h
Fix potential segfault.
[vlc] / include / vlc_configuration.h
index e65f8b0606b2df1073829f5792678ae4210ed889..b9c047fa397ed8ad9cedc5c0012b0c861bb55359 100644 (file)
  * 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 ) );