Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
3ddbf4b2
Commit
3ddbf4b2
authored
Dec 26, 2007
by
Rémi Denis-Courmont
Browse files
Add "safe" config item property
parent
cef7a5d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/vlc_configuration.h
View file @
3ddbf4b2
...
...
@@ -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:
****************************************************************************/
...
...
src/modules/entry.c
View file @
3ddbf4b2
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment