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
fb3ee6ab
Commit
fb3ee6ab
authored
Aug 04, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More access functions around module_t
parent
cc39378d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
include/vlc_modules.h
include/vlc_modules.h
+6
-1
src/libvlc.sym
src/libvlc.sym
+2
-0
src/modules/modules.c
src/modules/modules.c
+19
-0
No files found.
include/vlc_modules.h
View file @
fb3ee6ab
...
...
@@ -46,6 +46,7 @@ typedef shl_t module_handle_t;
/**
* Module descriptor
*/
#ifndef __PLUGIN__
/* FIXME: scheduled for privatization */
struct
module_t
{
...
...
@@ -96,6 +97,7 @@ struct module_t
vlc_bool_t
b_builtin
;
/* Set to true if the module is built in */
vlc_bool_t
b_loaded
;
/* Set to true if the dll is loaded */
};
#endif
/*****************************************************************************
* Exported functions.
...
...
@@ -129,4 +131,7 @@ enum vlc_module_properties
VLC_MODULE_NAME
};
VLC_EXPORT
(
vlc_bool_t
,
module_IsCapable
,
(
const
module_t
*
,
const
char
*
cap
)
);
VLC_EXPORT
(
vlc_bool_t
,
module_IsCapable
,
(
const
module_t
*
m
,
const
char
*
cap
)
);
VLC_EXPORT
(
const
char
*
,
module_GetObjName
,
(
const
module_t
*
m
)
);
VLC_EXPORT
(
const
char
*
,
module_GetName
,
(
const
module_t
*
m
,
vlc_bool_t
long_name
)
);
src/libvlc.sym
View file @
fb3ee6ab
...
...
@@ -178,6 +178,8 @@ __module_Exists
__module_Need
__module_Unneed
module_IsCapable
module_GetObjName
module_GetName
__msg_Dbg
__msg_Err
__msg_Generic
...
...
src/modules/modules.c
View file @
fb3ee6ab
...
...
@@ -391,6 +391,25 @@ vlc_bool_t module_IsCapable( const module_t *m, const char *cap )
return
!
strcmp
(
m
->
psz_capability
,
cap
);
}
/*****************************************************************************
* module_GetObjName: internal name of a module.
*****************************************************************************/
const
char
*
module_GetObjName
(
const
module_t
*
m
)
{
return
m
->
psz_object_name
;
}
/*****************************************************************************
* module_GetName: human-friendly name of a module.
*****************************************************************************/
const
char
*
module_GetName
(
const
module_t
*
m
,
vlc_bool_t
long_name
)
{
if
(
long_name
&&
(
m
->
psz_longname
!=
NULL
)
)
return
m
->
psz_longname
;
return
m
->
psz_shortname
?:
m
->
psz_object_name
;
}
/*****************************************************************************
* module_Need: return the best module function, given a capability list.
*****************************************************************************
...
...
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