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
eb2e4add
Commit
eb2e4add
authored
Dec 16, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more vlc_config_* code
parent
a24e0766
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
include/vlc_configuration.h
include/vlc_configuration.h
+2
-1
src/modules/entry.c
src/modules/entry.c
+19
-0
No files found.
include/vlc_configuration.h
View file @
eb2e4add
...
...
@@ -247,6 +247,7 @@ typedef enum vlc_config_properties
}
vlc_config_t
;
VLC_EXPORT
(
module_config_t
*
,
vlc_config_create
,
(
module_t
*
,
int
type
)
);
VLC_EXPORT
(
int
,
vlc_config_set
,
(
module_config_t
*
,
vlc_config_t
,
...)
);
/*****************************************************************************
...
...
@@ -367,7 +368,7 @@ VLC_EXPORT( int, vlc_config_set, (module_config_t *, vlc_config_t, ...) );
#define add_bool( name, v, p_callback, text, longtext, advc ) \
add_typename_inner( CONFIG_ITEM_BOOL, name, text, longtext, advc, p_callback ); \
p_config[i_config].value.i = v
if (v) vlc_config_set (p_config + i_config, VLC_CONFIG_VALUE, (int)VLC_TRUE)
/* For renamed option */
#define add_deprecated_alias( name ) \
...
...
src/modules/entry.c
View file @
eb2e4add
...
...
@@ -142,6 +142,25 @@ int vlc_module_set (module_t *module, int propid, void *value)
return
0
;
}
module_config_t
*
vlc_config_create
(
module_t
*
module
,
int
type
)
{
unsigned
confsize
=
module
->
confsize
;
module_config_t
*
tab
=
module
->
p_config
;
if
((
confsize
&
0xf
)
==
0
)
{
tab
=
realloc
(
tab
,
(
confsize
+
17
)
*
sizeof
(
*
tab
));
if
(
tab
==
NULL
)
return
NULL
;
module
->
p_config
=
tab
;
}
module
->
confsize
++
;
memset
(
tab
+
confsize
,
0
,
sizeof
(
tab
[
confsize
]));
return
tab
+
confsize
;
}
int
vlc_config_set
(
module_config_t
*
restrict
item
,
vlc_config_t
id
,
...)
{
int
ret
=
-
1
;
...
...
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