/* Sub-version number
* (only used to avoid breakage in dev version when cache structure changes) */
-#define CACHE_SUBVERSION_NUM 2
+#define CACHE_SUBVERSION_NUM 3
/*****************************************************************************
* module_InitBank: create the module bank.
/* Now that we have successfully loaded the module, we can
* allocate a structure for it */
- p_module = vlc_object_create( p_this, VLC_OBJECT_MODULE );
+ p_module = vlc_module_create( p_this );
if( p_module == NULL )
{
msg_Err( p_this, "out of memory" );
if( pp_cache[i]->b_junk ) continue;
- pp_cache[i]->p_module = vlc_object_create( p_this, VLC_OBJECT_MODULE );
+ pp_cache[i]->p_module = vlc_module_create( p_this );
/* Load additional infos */
LOAD_STRING( pp_cache[i]->p_module->psz_object_name );
while( i_submodules-- )
{
- module_t *p_module = vlc_object_create( p_this, VLC_OBJECT_MODULE);
- vlc_object_attach( p_module, pp_cache[i]->p_module );
- p_module->b_submodule = VLC_TRUE;
-
+ module_t *p_module = vlc_submodule_create( pp_cache[i]->p_module );
LOAD_STRING( p_module->psz_object_name );
LOAD_STRING( p_module->psz_shortname );
LOAD_STRING( p_module->psz_longname );