From: seoz Date: Fri, 17 Feb 2012 05:12:56 +0000 (+0000) Subject: elm cache: elm_all_flush() -> elm_cache_all_flush() X-Git-Tag: REL_F_I9500_20120323_1~17^2~670 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9a5992df6a9ccd43eeb698cd07466b27dcc6308;p=framework%2Fuifw%2Felementary.git elm cache: elm_all_flush() -> elm_cache_all_flush() Signed-off-by: Daniel Juyung Seo git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68051 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c index 164750b..c717cb6 100644 --- a/src/bin/test_genlist.c +++ b/src/bin/test_genlist.c @@ -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; } diff --git a/src/lib/elm_cache.h b/src/lib/elm_cache.h index 14a2527..0a5e808 100644 --- a/src/lib/elm_cache.h +++ b/src/lib/elm_cache.h @@ -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 diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c index 5bc7d3b..af15785 100644 --- a/src/lib/elm_config.c +++ b/src/lib/elm_config.c @@ -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) { diff --git a/src/lib/elm_deprecated.h b/src/lib/elm_deprecated.h index 5f622a2..098acbe 100644 --- a/src/lib/elm_deprecated.h +++ b/src/lib/elm_deprecated.h @@ -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); + +/** * @} */ diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c index 4d76dd1..b1caa8d 100644 --- a/src/lib/elm_main.c +++ b/src/lib/elm_main.c @@ -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) {