forked from enlightenment/efl
+ [Eina] API change. eina_module_list_flush() -> eina_module_list_free()
as we are on the modules context not the array. All the referenced projects are changed too. Remember that the list_free() already calls the unload() on each module so no need to call list_unload() SVN revision: 44978
This commit is contained in:
parent
6183c3716e
commit
f3fb3dea17
|
@ -121,7 +121,7 @@ _edje_module_shutdown(void)
|
|||
Eina_List *l;
|
||||
const char *data;
|
||||
|
||||
eina_module_list_flush(_available_modules);
|
||||
eina_module_list_free(_available_modules);
|
||||
if (_available_modules)
|
||||
{
|
||||
eina_array_free(_available_modules);
|
||||
|
|
|
@ -69,7 +69,7 @@ EAPI char *eina_module_environment_path_get(const char *env, const char *sub_dir
|
|||
EAPI Eina_Array * eina_module_list_get(Eina_Array *array, const char *path, unsigned int recursive, Eina_Module_Cb cb, void *data) EINA_MALLOC EINA_ARG_NONNULL(2) EINA_WARN_UNUSED_RESULT;
|
||||
EAPI void eina_module_list_load(Eina_Array *list) EINA_ARG_NONNULL(1);
|
||||
EAPI void eina_module_list_unload(Eina_Array *list) EINA_ARG_NONNULL(1);
|
||||
EAPI void eina_module_list_flush(Eina_Array *list) EINA_ARG_NONNULL(1);
|
||||
EAPI void eina_module_list_free(Eina_Array *list) EINA_ARG_NONNULL(1);
|
||||
EAPI Eina_Module * eina_module_find(const Eina_Array *array, const char *module) EINA_ARG_NONNULL(1, 2) EINA_PURE;
|
||||
|
||||
/**
|
||||
|
|
|
@ -238,7 +238,7 @@ eina_mempool_shutdown(void)
|
|||
buddy_shutdown();
|
||||
#endif
|
||||
/* dynamic backends */
|
||||
eina_module_list_flush(_modules);
|
||||
eina_module_list_free(_modules);
|
||||
if (_modules)
|
||||
eina_array_free(_modules);
|
||||
|
||||
|
|
|
@ -613,7 +613,7 @@ EAPI void eina_module_list_unload(Eina_Array *array)
|
|||
* Helper function that iterates over the list of modules and calls
|
||||
* eina_module_free on each
|
||||
*/
|
||||
EAPI void eina_module_list_flush(Eina_Array *array)
|
||||
EAPI void eina_module_list_free(Eina_Array *array)
|
||||
{
|
||||
Eina_Array_Iterator iterator;
|
||||
Eina_Module *m;
|
||||
|
|
|
@ -59,7 +59,7 @@ static void _mempool_init(void)
|
|||
|
||||
static void _mempool_shutdown(void)
|
||||
{
|
||||
eina_module_list_flush(_modules);
|
||||
eina_module_list_free(_modules);
|
||||
/* TODO delete the list */
|
||||
eina_shutdown();
|
||||
}
|
||||
|
|
|
@ -115,7 +115,7 @@ static void _mempool_init(void)
|
|||
|
||||
static void _mempool_shutdown(void)
|
||||
{
|
||||
eina_module_list_flush(_modules);
|
||||
eina_module_list_free(_modules);
|
||||
/* TODO delete the list */
|
||||
eina_shutdown();
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ _mempool_init(void)
|
|||
static void
|
||||
_mempool_shutdown(void)
|
||||
{
|
||||
eina_module_list_flush(_modules);
|
||||
eina_module_list_free(_modules);
|
||||
/* TODO delete the list */
|
||||
eina_shutdown();
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ START_TEST(eina_module_load_unload)
|
|||
fail_if(!_modules);
|
||||
eina_module_list_load(_modules);
|
||||
eina_module_list_unload(_modules);
|
||||
eina_module_list_flush(_modules);
|
||||
eina_module_list_free(_modules);
|
||||
/* TODO delete the list */
|
||||
eina_shutdown();
|
||||
}
|
||||
|
|
|
@ -146,7 +146,7 @@ _ethumb_plugins_unload(void)
|
|||
eina_hash_free(_plugins_ext);
|
||||
_plugins_ext = NULL;
|
||||
eina_module_list_unload(_plugins);
|
||||
eina_module_list_flush(_plugins);
|
||||
eina_module_list_free(_plugins);
|
||||
eina_array_free(_plugins);
|
||||
_plugins = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue