Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
543ee6a2
Commit
543ee6a2
authored
Aug 29, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support static modules using extern NULL-terminated list
parent
7bb289c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
src/modules/bank.c
src/modules/bank.c
+20
-0
No files found.
src/modules/bank.c
View file @
543ee6a2
...
...
@@ -71,6 +71,25 @@ static void module_StoreBank (module_t *module)
modules
.
head
=
module
;
}
#ifdef __GNUC__
__attribute__
((
weak
))
#else
#pragma weak vlc_static_modules
#endif
extern
vlc_plugin_cb
vlc_static_modules
[];
static
void
module_InitStaticModules
(
void
)
{
if
(
!
vlc_static_modules
)
return
;
for
(
unsigned
i
=
0
;
vlc_static_modules
[
i
];
i
++
)
{
module_t
*
module
=
module_InitStatic
(
vlc_static_modules
[
i
]);
if
(
likely
(
module
!=
NULL
))
module_StoreBank
(
module
);
}
}
/**
* Init bank
*
...
...
@@ -92,6 +111,7 @@ void module_InitBank (void)
if
(
likely
(
module
!=
NULL
))
module_StoreBank
(
module
);
module_InitStaticModules
();
config_SortConfig
();
}
modules
.
usage
++
;
...
...
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