+ [Eina] API change. eina_module_list_flush() -> eina_module_list_free()
authorturran <turran>
Fri, 8 Jan 2010 12:22:23 +0000 (12:22 +0000)
committerturran <turran@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 8 Jan 2010 12:22:23 +0000 (12:22 +0000)
  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()

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@44978 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/include/eina_module.h
src/lib/eina_mempool.c
src/lib/eina_module.c
src/tests/eina_bench.c
src/tests/eina_suite.c
src/tests/eina_test_mempool.c
src/tests/eina_test_module.c

index dd9c20b..2e31309 100644 (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 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;
 
 /**
index 4934b96..83d2795 100644 (file)
@@ -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);
 
index 03bbb86..e6029c6 100644 (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
  * 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;
index 9f327b4..fdb76be 100644 (file)
@@ -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();
 }
index e753dae..4fdc7b4 100644 (file)
@@ -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();
 }
index 06bdcc0..af93c98 100644 (file)
@@ -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();
 }
index eeeb9cd..fdfa171 100644 (file)
@@ -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();
 }