]> git.sesse.net Git - vlc/blobdiff - include/vlc_configuration.h
include/vlc/mediacontrol_structures.h: use u_int32_t instead of uint32_t, since some...
[vlc] / include / vlc_configuration.h
index ac427a80975d6f3ecee31a691b179143d26d7e64..9432b3201624267bd64bb483ef1de9c057d75d46 100644 (file)
@@ -190,6 +190,8 @@ struct module_config_t
     /* Option values loaded from config file */
     vlc_bool_t   b_autosave;      /* Config will be auto-saved at exit time */
     vlc_bool_t   b_unsaveable;                    /* Config should be saved */
+
+    vlc_bool_t   b_unsafe;
 };
 
 /*****************************************************************************
@@ -279,6 +281,9 @@ enum vlc_config_properties
 
     VLC_CONFIG_OLDNAME,
     /* former option name (args=const char *) */
+
+    VLC_CONFIG_UNSAFE,
+    /* tag as modifiable by untrusted input item "sources" (args=none) */
 };
 
 
@@ -467,6 +472,9 @@ VLC_EXPORT( int, vlc_config_set, (module_config_t *, int, ...) );
 #define change_unsaveable() \
     vlc_config_set (p_config, VLC_CONFIG_VOLATILE)
 
+#define change_unsafe() \
+    vlc_config_set (p_config, VLC_CONFIG_UNSAFE)
+
 /****************************************************************************
  * config_chain_t:
  ****************************************************************************/