+ [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:
Jorge Luis Zapata Muga 2010-01-08 12:22:23 +00:00
parent 6183c3716e
commit f3fb3dea17
9 changed files with 9 additions and 9 deletions

View File

@ -121,7 +121,7 @@ _edje_module_shutdown(void)
Eina_List *l; Eina_List *l;
const char *data; const char *data;
eina_module_list_flush(_available_modules); eina_module_list_free(_available_modules);
if (_available_modules) if (_available_modules)
{ {
eina_array_free(_available_modules); eina_array_free(_available_modules);

View File

@ -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 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_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_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; EAPI Eina_Module * eina_module_find(const Eina_Array *array, const char *module) EINA_ARG_NONNULL(1, 2) EINA_PURE;
/** /**

View File

@ -238,7 +238,7 @@ eina_mempool_shutdown(void)
buddy_shutdown(); buddy_shutdown();
#endif #endif
/* dynamic backends */ /* dynamic backends */
eina_module_list_flush(_modules); eina_module_list_free(_modules);
if (_modules) if (_modules)
eina_array_free(_modules); eina_array_free(_modules);

View File

@ -613,7 +613,7 @@ EAPI void eina_module_list_unload(Eina_Array *array)
* Helper function that iterates over the list of modules and calls * Helper function that iterates over the list of modules and calls
* eina_module_free on each * 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_Array_Iterator iterator;
Eina_Module *m; Eina_Module *m;

View File

@ -59,7 +59,7 @@ static void _mempool_init(void)
static void _mempool_shutdown(void) static void _mempool_shutdown(void)
{ {
eina_module_list_flush(_modules); eina_module_list_free(_modules);
/* TODO delete the list */ /* TODO delete the list */
eina_shutdown(); eina_shutdown();
} }

View File

@ -115,7 +115,7 @@ static void _mempool_init(void)
static void _mempool_shutdown(void) static void _mempool_shutdown(void)
{ {
eina_module_list_flush(_modules); eina_module_list_free(_modules);
/* TODO delete the list */ /* TODO delete the list */
eina_shutdown(); eina_shutdown();
} }

View File

@ -37,7 +37,7 @@ _mempool_init(void)
static void static void
_mempool_shutdown(void) _mempool_shutdown(void)
{ {
eina_module_list_flush(_modules); eina_module_list_free(_modules);
/* TODO delete the list */ /* TODO delete the list */
eina_shutdown(); eina_shutdown();
} }

View File

@ -53,7 +53,7 @@ START_TEST(eina_module_load_unload)
fail_if(!_modules); fail_if(!_modules);
eina_module_list_load(_modules); eina_module_list_load(_modules);
eina_module_list_unload(_modules); eina_module_list_unload(_modules);
eina_module_list_flush(_modules); eina_module_list_free(_modules);
/* TODO delete the list */ /* TODO delete the list */
eina_shutdown(); eina_shutdown();
} }

View File

@ -146,7 +146,7 @@ _ethumb_plugins_unload(void)
eina_hash_free(_plugins_ext); eina_hash_free(_plugins_ext);
_plugins_ext = NULL; _plugins_ext = NULL;
eina_module_list_unload(_plugins); eina_module_list_unload(_plugins);
eina_module_list_flush(_plugins); eina_module_list_free(_plugins);
eina_array_free(_plugins); eina_array_free(_plugins);
_plugins = NULL; _plugins = NULL;
} }