Commit cc4cca2f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

- fix symbol list

 - remove useless IsSubmodule (submodules have NO configuration items anyway, and any sensible UI won't show modules with no configuration)
 - free checks for NULL anyway
parent 09649055
...@@ -75,7 +75,6 @@ enum vlc_module_properties ...@@ -75,7 +75,6 @@ enum vlc_module_properties
}; };
VLC_EXPORT( vlc_bool_t, module_IsCapable, ( const module_t *m, const char *cap ) ); VLC_EXPORT( vlc_bool_t, module_IsCapable, ( const module_t *m, const char *cap ) );
VLC_EXPORT( vlc_bool_t, module_IsSubModule, ( const module_t *m ) );
VLC_EXPORT( const char *, module_GetObjName, ( const module_t *m ) ); 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 ) ); VLC_EXPORT( const char *, module_GetName, ( const module_t *m, vlc_bool_t long_name ) );
#define module_GetLongName( m ) module_GetName( m, VLC_TRUE ) #define module_GetLongName( m ) module_GetName( m, VLC_TRUE )
......
...@@ -331,14 +331,6 @@ vlc_bool_t module_IsCapable( const module_t *m, const char *cap ) ...@@ -331,14 +331,6 @@ vlc_bool_t module_IsCapable( const module_t *m, const char *cap )
return !strcmp( m->psz_capability, cap ); return !strcmp( m->psz_capability, cap );
} }
/*****************************************************************************
* module_IsSubModule: checks whether a module is a sub-module.
*****************************************************************************/
vlc_bool_t module_IsSubModule( const module_t *m )
{
return m->b_submodule;
}
/***************************************************************************** /*****************************************************************************
* module_GetObjName: internal name of a module. * module_GetObjName: internal name of a module.
*****************************************************************************/ *****************************************************************************/
...@@ -802,12 +794,11 @@ char ** __module_GetModulesNamesForCapability( vlc_object_t *p_this, ...@@ -802,12 +794,11 @@ char ** __module_GetModulesNamesForCapability( vlc_object_t *p_this,
module_config_t *module_GetConfig (const module_t *module, unsigned *restrict psize) module_config_t *module_GetConfig (const module_t *module, unsigned *restrict psize)
{ {
unsigned size = module->confsize; unsigned size = module->confsize;
module_config_t *config;
assert (psize != NULL); assert (psize != NULL);
*psize = size; *psize = size;
config = malloc (size * sizeof (*config)); module_config_t *config = malloc (size * sizeof (*config));
if (config) if (config)
memcpy (config, module->p_config, size * sizeof (*config)); memcpy (config, module->p_config, size * sizeof (*config));
...@@ -816,7 +807,7 @@ module_config_t *module_GetConfig (const module_t *module, unsigned *restrict ps ...@@ -816,7 +807,7 @@ module_config_t *module_GetConfig (const module_t *module, unsigned *restrict ps
void module_PutConfig (module_config_t *config) void module_PutConfig (module_config_t *config)
{ {
if(config) free (config); free (config);
} }
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment