* main module. We need to do this at this stage to be able to display
* a short help if required by the user. (short help == main module
* options) */
- module_InitBank( p_libvlc );
+ module_InitBank ();
if( config_LoadCmdLine( p_libvlc, i_argc, ppsz_argv, NULL ) )
{
- module_EndBank( p_libvlc, false );
+ module_EndBank (false);
return VLC_EGENERIC;
}
if( b_exit )
{
- module_EndBank( p_libvlc, false );
+ module_EndBank (false);
return i_ret;
}
if( b_exit )
{
- module_EndBank( p_libvlc, true );
+ module_EndBank (true);
return i_ret;
}
"that they are valid.\n" );
PauseConsole();
#endif
- module_EndBank( p_libvlc, true );
+ module_EndBank (true);
return VLC_EGENERIC;
}
priv->i_verbose = var_InheritInteger( p_libvlc, "verbose" );
{
module_unneed( p_libvlc, priv->p_memcpy_module );
}
- module_EndBank( p_libvlc, true );
+ module_EndBank (true);
return VLC_EGENERIC;
}
config_AutoSaveConfigFile( VLC_OBJECT(p_libvlc) );
/* Free module bank. It is refcounted, so we call this each time */
- module_EndBank( p_libvlc, true );
+ module_EndBank (true);
vlc_DeinitActions( p_libvlc, priv->actions );
}
static module_t *module_InitStatic (vlc_plugin_cb);
static void DeleteModule (module_t **, module_t *);
-#undef module_InitBank
/**
* Init bank
*
* Creates a module bank structure which will be filled later
* on with all the modules found.
- * \param p_this vlc object structure
- * \return nothing
*/
-void module_InitBank( vlc_object_t *p_this )
+void module_InitBank (void)
{
vlc_mutex_lock (&modules.lock);
/*vlc_mutex_unlock (&modules.lock);*/
}
-#undef module_EndBank
/**
* Unloads all unused plugin modules and empties the module
* bank in case of success.
- * \param p_this vlc object structure
- * \return nothing
*/
-void module_EndBank( vlc_object_t *p_this, bool b_plugins )
+void module_EndBank (bool b_plugins)
{
module_t *head = NULL;
module_t *vlc_submodule_create (module_t *module);
void vlc_module_destroy (module_t *);
-void module_InitBank( vlc_object_t * );
-#define module_InitBank(a) module_InitBank(VLC_OBJECT(a))
+void module_InitBank (void);
void module_LoadPlugins( vlc_object_t * );
#define module_LoadPlugins(a) module_LoadPlugins(VLC_OBJECT(a))
-void module_EndBank( vlc_object_t *, bool );
-#define module_EndBank(a,b) module_EndBank(VLC_OBJECT(a), b)
+void module_EndBank (bool);
int vlc_bindtextdomain (const char *);