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
b7ccccfb
Commit
b7ccccfb
authored
Jan 19, 2009
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for config chain for interface modules
parent
be14f0f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
include/vlc_interface.h
include/vlc_interface.h
+2
-0
include/vlc_plugin.h
include/vlc_plugin.h
+2
-2
src/interface/interface.c
src/interface/interface.c
+10
-2
No files found.
include/vlc_interface.h
View file @
b7ccccfb
...
...
@@ -67,6 +67,8 @@ struct intf_thread_t
intf_dialog_args_t
*
);
vlc_mutex_t
change_lock
;
config_chain_t
*
p_cfg
;
};
/** \brief Arguments passed to a dialogs provider
...
...
include/vlc_plugin.h
View file @
b7ccccfb
...
...
@@ -132,8 +132,8 @@ enum vlc_config_properties
/**
* Current plugin ABI version
*/
# define MODULE_SYMBOL 1_0_0
c
# define MODULE_SUFFIX "__1_0_0
c
"
# define MODULE_SYMBOL 1_0_0
d
# define MODULE_SUFFIX "__1_0_0
d
"
/*****************************************************************************
* Add a few defines. You do not want to read this section. Really.
...
...
src/interface/interface.c
View file @
b7ccccfb
...
...
@@ -69,6 +69,7 @@ static void intf_Destroy( vlc_object_t *obj )
module_unneed
(
p_intf
,
p_intf
->
p_module
);
free
(
p_intf
->
psz_intf
);
config_ChainDestroy
(
p_intf
->
p_cfg
);
vlc_mutex_destroy
(
&
p_intf
->
change_lock
);
}
...
...
@@ -94,8 +95,15 @@ intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module )
#endif
/* Choose the best module */
p_intf
->
psz_intf
=
strdup
(
psz_module
);
p_intf
->
p_module
=
module_need
(
p_intf
,
"interface"
,
psz_module
,
true
);
p_intf
->
p_cfg
=
NULL
;
char
*
psz_parser
=
*
psz_module
==
'$'
?
var_CreateGetString
(
p_intf
,
psz_module
+
1
)
:
strdup
(
psz_module
);
char
*
psz_tmp
=
config_ChainCreate
(
&
p_intf
->
psz_intf
,
&
p_intf
->
p_cfg
,
psz_parser
);
free
(
psz_tmp
);
free
(
psz_parser
);
p_intf
->
p_module
=
module_need
(
p_intf
,
"interface"
,
p_intf
->
psz_intf
,
true
);
if
(
p_intf
->
p_module
==
NULL
)
{
...
...
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