Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
3ddbf4b2
Commit
3ddbf4b2
authored
Dec 26, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "safe" config item property
parent
cef7a5d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
include/vlc_configuration.h
include/vlc_configuration.h
+7
-0
src/modules/entry.c
src/modules/entry.c
+5
-0
No files found.
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