Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ac5d0a1e
Commit
ac5d0a1e
authored
Aug 04, 2007
by
Rémi Denis-Courmont
Browse files
module_GetHelp
parent
c3102ca4
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/vlc_modules.h
View file @
ac5d0a1e
...
...
@@ -46,7 +46,7 @@ typedef shl_t module_handle_t;
/**
* Module descriptor
*/
#ifndef __PLUGIN__
#ifndef __PLUGIN__
FIXME
/* FIXME: scheduled for privatization */
struct
module_t
{
...
...
@@ -134,4 +134,5 @@ enum vlc_module_properties
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
)
);
#define module_GetLongName( m ) module_GetName( m, VLC_TRUE )
VLC_EXPORT
(
const
char
*
,
module_GetHelp
,
(
const
module_t
*
m
)
);
src/libvlc.sym
View file @
ac5d0a1e
...
...
@@ -180,6 +180,7 @@ __module_Unneed
module_IsCapable
module_GetObjName
module_GetName
module_GetHelp
__msg_Dbg
__msg_Err
__msg_Generic
...
...
src/modules/modules.c
View file @
ac5d0a1e
...
...
@@ -402,7 +402,7 @@ const char *module_GetObjName( const module_t *m )
/*****************************************************************************
* module_GetName: human-friendly name of a module.
*****************************************************************************/
const
char
*
module_GetName
(
const
module_t
*
m
,
vlc_bool_t
long_name
)
const
char
*
module_GetName
(
const
module_t
*
m
,
vlc_bool_t
long_name
)
{
if
(
long_name
&&
(
m
->
psz_longname
!=
NULL
)
)
return
m
->
psz_longname
;
...
...
@@ -410,6 +410,11 @@ const char *module_GetName(const module_t *m, vlc_bool_t long_name )
return
m
->
psz_shortname
?:
m
->
psz_object_name
;
}
const
char
*
module_GetHelp
(
const
module_t
*
m
)
{
return
m
->
psz_help
;
}
/*****************************************************************************
* module_Need: return the best module function, given a capability list.
*****************************************************************************
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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