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
6452698b
Commit
6452698b
authored
May 31, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added config_ChainDuplicate to duplicate config_chain_t list.
parent
9cef9256
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
0 deletions
+25
-0
include/vlc_configuration.h
include/vlc_configuration.h
+5
-0
src/config/chain.c
src/config/chain.c
+19
-0
src/libvlccore.sym
src/libvlccore.sym
+1
-0
No files found.
include/vlc_configuration.h
View file @
6452698b
...
...
@@ -278,6 +278,11 @@ VLC_EXPORT( char *, config_ChainCreate, ( char **ppsz_name, config_chain_t **pp_
*/
VLC_EXPORT
(
void
,
config_ChainDestroy
,
(
config_chain_t
*
)
);
/**
* This function will duplicate a linked list of config_chain_t
*/
VLC_EXPORT
(
config_chain_t
*
,
config_ChainDuplicate
,
(
const
config_chain_t
*
)
);
/**
* This function will unescape a string in place and will return a pointer on
* the given string.
...
...
src/config/chain.c
View file @
6452698b
...
...
@@ -412,6 +412,25 @@ void __config_ChainParse( vlc_object_t *p_this, const char *psz_prefix,
}
}
config_chain_t
*
config_ChainDuplicate
(
const
config_chain_t
*
p_src
)
{
config_chain_t
*
p_dst
=
NULL
;
config_chain_t
**
pp_last
=
&
p_dst
;
while
(
p_src
)
{
config_chain_t
*
p
=
malloc
(
sizeof
(
*
p
)
);
if
(
!
p
)
break
;
p
->
p_next
=
NULL
;
p
->
psz_name
=
p_src
->
psz_name
?
strdup
(
p_src
->
psz_name
)
:
NULL
;
p
->
psz_value
=
p_src
->
psz_value
?
strdup
(
p_src
->
psz_value
)
:
NULL
;
*
pp_last
=
p
;
pp_last
=
&
p
->
p_next
;
}
return
p_dst
;
}
char
*
config_StringUnescape
(
char
*
psz_string
)
{
char
*
psz_src
=
psz_string
;
...
...
src/libvlccore.sym
View file @
6452698b
...
...
@@ -51,6 +51,7 @@ block_Realloc
__config_AddIntf
config_ChainCreate
config_ChainDestroy
config_ChainDuplicate
__config_ChainParse
__config_ExistIntf
config_FindConfig
...
...
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