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
7355193f
Commit
7355193f
authored
Dec 28, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Helper to get the capability of a module and its score.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
4dd6f937
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
include/vlc_modules.h
include/vlc_modules.h
+2
-0
src/libvlccore.sym
src/libvlccore.sym
+2
-0
src/modules/modules.c
src/modules/modules.c
+22
-0
No files found.
include/vlc_modules.h
View file @
7355193f
...
@@ -50,6 +50,8 @@ VLC_EXPORT( const char *, module_get_object, ( const module_t *m ) );
...
@@ -50,6 +50,8 @@ VLC_EXPORT( const char *, module_get_object, ( const module_t *m ) );
VLC_EXPORT
(
const
char
*
,
module_get_name
,
(
const
module_t
*
m
,
bool
long_name
)
);
VLC_EXPORT
(
const
char
*
,
module_get_name
,
(
const
module_t
*
m
,
bool
long_name
)
);
#define module_GetLongName( m ) module_get_name( m, true )
#define module_GetLongName( m ) module_get_name( m, true )
VLC_EXPORT
(
const
char
*
,
module_get_help
,
(
const
module_t
*
m
)
);
VLC_EXPORT
(
const
char
*
,
module_get_help
,
(
const
module_t
*
m
)
);
VLC_EXPORT
(
const
char
*
,
module_get_capability
,
(
const
module_t
*
m
)
);
VLC_EXPORT
(
int
,
module_get_score
,
(
const
module_t
*
m
)
);
static
inline
module_t
*
module_get_main
(
void
)
static
inline
module_t
*
module_get_main
(
void
)
{
{
...
...
src/libvlccore.sym
View file @
7355193f
...
@@ -213,9 +213,11 @@ module_config_free
...
@@ -213,9 +213,11 @@ module_config_free
module_config_get
module_config_get
module_exists
module_exists
module_find
module_find
module_get_capability
module_get_help
module_get_help
module_get_name
module_get_name
module_get_object
module_get_object
module_get_score
module_hold
module_hold
module_list_free
module_list_free
module_list_get
module_list_get
...
...
src/modules/modules.c
View file @
7355193f
...
@@ -317,6 +317,28 @@ const char *module_get_help( const module_t *m )
...
@@ -317,6 +317,28 @@ const char *module_get_help( const module_t *m )
return
m
->
psz_help
;
return
m
->
psz_help
;
}
}
/**
* Get the capability for a module
*
* \param m the module
* return the capability
*/
const
char
*
module_get_capability
(
const
module_t
*
m
)
{
return
m
->
psz_capability
;
}
/**
* Get the score for a module
*
* \param m the module
* return the score for the capability
*/
int
module_get_score
(
const
module_t
*
m
)
{
return
m
->
i_score
;
}
module_t
*
module_hold
(
module_t
*
m
)
module_t
*
module_hold
(
module_t
*
m
)
{
{
vlc_hold
(
&
m
->
vlc_gc_data
);
vlc_hold
(
&
m
->
vlc_gc_data
);
...
...
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