elm cache: elm_all_flush() -> elm_cache_all_flush()
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 17 Feb 2012 05:12:56 +0000 (05:12 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 17 Feb 2012 05:12:56 +0000 (05:12 +0000)
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68051 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/test_genlist.c
src/lib/elm_cache.h
src/lib/elm_config.c
src/lib/elm_deprecated.h
src/lib/elm_main.c

index 164750b..c717cb6 100644 (file)
@@ -329,7 +329,7 @@ my_gl_last(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
 static Eina_Bool
 my_gl_flush_delay(void *data __UNUSED__)
 {
-   elm_all_flush();
+   elm_cache_all_flush();
    return ECORE_CALLBACK_CANCEL;
 }
 
index 14a2527..0a5e808 100644 (file)
@@ -23,8 +23,7 @@
  *
  * @ingroup Caches
  */
-// XXX: rename: elm_cache_all_flush()
-EAPI void      elm_all_flush(void);
+EAPI void      elm_cache_all_flush(void);
 
 /**
  * Get the configured cache flush interval time
index 5bc7d3b..af15785 100644 (file)
@@ -742,7 +742,7 @@ _config_sub_apply(void)
 static Eina_Bool
 _elm_cache_flush_cb(void *data __UNUSED__)
 {
-   elm_all_flush();
+   elm_cache_all_flush();
    return ECORE_CALLBACK_RENEW;
 }
 
@@ -755,7 +755,7 @@ _elm_recache(void)
    Eina_List *l;
    Evas_Object *win;
 
-   elm_all_flush();
+   elm_cache_all_flush();
 
    EINA_LIST_FOREACH(_elm_win_list, l, win)
      {
index 5f622a2..098acbe 100644 (file)
@@ -4514,5 +4514,22 @@ EINA_DEPRECATED EAPI void                        elm_label_text_align_set(Evas_O
 EINA_DEPRECATED EAPI void                        elm_label_background_color_set(Evas_Object *obj, unsigned int r, unsigned int g, unsigned int b, unsigned int a);
 
 /**
+ * @brief Flush all caches.
+ *
+ * Frees all data that was in cache and is not currently being used to reduce
+ * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
+ * to calling all of the following functions:
+ * @li edje_file_cache_flush()
+ * @li edje_collection_cache_flush()
+ * @li eet_clearcache()
+ * @li evas_image_cache_flush()
+ * @li evas_font_cache_flush()
+ * @li evas_render_dump()
+ * @note Evas caches are flushed for every canvas associated with a window.
+ * @deprecated Use elm_cache_all_flush() instead.
+ */
+EINA_DEPRECATED EAPI void      elm_all_flush(void);
+
+/**
  * @}
  */
index 4d76dd1..b1caa8d 100644 (file)
@@ -1300,7 +1300,7 @@ elm_coords_finger_size_adjust(int         times_w,
 }
 
 EAPI void
-elm_all_flush(void)
+elm_cache_all_flush(void)
 {
    const Eina_List *l;
    Evas_Object *obj;
@@ -1317,6 +1317,12 @@ elm_all_flush(void)
      }
 }
 
+EINA_DEPRECATED EAPI void
+elm_all_flush(void)
+{
+   elm_cache_all_flush();
+}
+
 EAPI int
 elm_cache_flush_interval_get(void)
 {