Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
1b874401
Commit
1b874401
authored
Dec 12, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
module_GetConfig, module_PutConfig: copy configuration data for a module
parent
2a6cb11e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
src/libvlc.sym
src/libvlc.sym
+2
-0
src/modules/modules.c
src/modules/modules.c
+19
-0
No files found.
src/libvlc.sym
View file @
1b874401
...
...
@@ -146,12 +146,14 @@ LocaleFree
mdate
__module_Exists
__module_FindName
module_GetConfig
module_GetHelp
module_GetName
module_GetObjName
module_IsCapable
__module_Need
module_Put
module_PutConfig
__module_Unneed
__msg_Dbg
__msg_Err
...
...
src/modules/modules.c
View file @
1b874401
...
...
@@ -791,6 +791,25 @@ char ** __module_GetModulesNamesForCapability( vlc_object_t *p_this,
}
module_config_t
*
module_GetConfig
(
const
module_t
*
module
,
unsigned
*
restrict
psize
)
{
unsigned
size
=
module
->
confsize
;
assert
(
psize
!=
NULL
);
*
psize
=
size
;
module_config_t
*
config
=
malloc
(
size
*
sizeof
(
*
config
));
if
(
config
)
memcpy
(
config
,
module
->
p_config
,
size
*
sizeof
(
*
config
));
return
config
;
}
void
module_PutConfig
(
module_config_t
*
config
)
{
free
(
config
);
}
/*****************************************************************************
* Following functions are local.
*****************************************************************************/
...
...
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