Commit 3ddbf4b2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Add "safe" config item property

parent cef7a5d4
......@@ -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_safe;
};
/*****************************************************************************
......@@ -279,6 +281,8 @@ enum vlc_config_properties
VLC_CONFIG_OLDNAME,
/* former option name (args=const char *) */
VLC_CONFIG_SAFE,
};
......@@ -467,6 +471,9 @@ VLC_EXPORT( int, vlc_config_set, (module_config_t *, int, ...) );
#define change_unsaveable() \
vlc_config_set (p_config, VLC_CONFIG_VOLATILE)
#define change_safe() \
vlc_config_set (p_config, VLC_CONFIG_SAFE)
/****************************************************************************
* config_chain_t:
****************************************************************************/
......
......@@ -406,6 +406,11 @@ int vlc_config_set (module_config_t *restrict item, int id, ...)
ret = 0;
break;
}
case VLC_CONFIG_SAFE:
item->b_safe = VLC_TRUE;
ret = 0;
break;
}
va_end (ap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment