From: SooChan Lim Date: Tue, 23 May 2023 10:04:03 +0000 (+0900) Subject: e_hints: make some function to be static X-Git-Tag: accepted/tizen/unified/20230605.170338~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af3a2eaec712193078055d3ed3794a6b9fff8a79;p=platform%2Fupstream%2Fenlightenment.git e_hints: make some function to be static Change-Id: Icad4ac9677754c427255ac9a7dd075ac569fea7c --- diff --git a/src/bin/e_hints.c b/src/bin/e_hints.c index 7b8112c..ad9f667 100644 --- a/src/bin/e_hints.c +++ b/src/bin/e_hints.c @@ -2,93 +2,8 @@ static Eina_List *aux_hints_supported = NULL; -E_API void -e_hints_window_visible_set(E_Client *ec) -{ - (void)ec; -} - -EINTERN void -e_hints_scale_update(void) -{ - Eina_List *l; - E_Comp_Wl_Output *output; - - EINA_LIST_FOREACH(e_comp_wl->outputs, l, output) - output->scale = e_scale; -} - -E_API const Eina_List * -e_hints_aux_hint_supported_add(const char *hint) -{ - Eina_List *l; - const char *supported; - - EINA_LIST_FOREACH(aux_hints_supported, l, supported) - { - if (!strcmp(supported, hint)) - return aux_hints_supported; - } - - aux_hints_supported = eina_list_append(aux_hints_supported, hint); - - return aux_hints_supported; -} - -E_API const Eina_List * -e_hints_aux_hint_supported_del(const char *hint) -{ - Eina_List *l; - const char *supported; - - EINA_LIST_FOREACH(aux_hints_supported, l, supported) - { - if (!strcmp(supported, hint)) - { - aux_hints_supported = eina_list_remove(aux_hints_supported, hint); - break; - } - } - - return aux_hints_supported; -} - -EINTERN const Eina_List * -e_hints_aux_hint_supported_get(void) -{ - return aux_hints_supported; -} - -E_API Eina_Bool -e_hints_aux_hint_add(E_Client *ec, int32_t id, const char *name, const char *val) -{ - if (!ec) return EINA_FALSE; - return e_hints_aux_hint_add_with_pixmap(ec->pixmap, id, name, val); -} - -EINTERN Eina_Bool -e_hints_aux_hint_change(E_Client *ec, int32_t id, const char *val) -{ - if (!ec) return EINA_FALSE; - return e_hints_aux_hint_change_with_pixmap(ec->pixmap, id, val); -} - -E_API Eina_Bool -e_hints_aux_hint_del(E_Client *ec, int32_t id) -{ - if (!ec) return EINA_FALSE; - return e_hints_aux_hint_del_with_pixmap(ec->pixmap, id); -} - -E_API const char * -e_hints_aux_hint_value_get(E_Client *ec, const char *name) -{ - if (!ec) return NULL; - return e_hints_aux_hint_value_get_with_pixmap(ec->pixmap, name); -} - -EINTERN Eina_Bool -e_hints_aux_hint_add_with_pixmap(E_Pixmap *cp, int32_t id, const char *name, const char *val) +static Eina_Bool +_e_hints_aux_hint_add_with_pixmap(E_Pixmap *cp, int32_t id, const char *name, const char *val) { E_Comp_Wl_Client_Data *cdata; Eina_Bool found = EINA_FALSE; @@ -161,8 +76,8 @@ e_hints_aux_hint_add_with_pixmap(E_Pixmap *cp, int32_t id, const char *name, con return EINA_TRUE; } -EINTERN Eina_Bool -e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t id, const char *val) +static Eina_Bool +_e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t id, const char *val) { E_Comp_Wl_Client_Data *cdata; Eina_List *l; @@ -201,8 +116,8 @@ e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t id, const char *val) return EINA_FALSE; } -EINTERN Eina_Bool -e_hints_aux_hint_del_with_pixmap(E_Pixmap *cp, int32_t id) +static Eina_Bool +_e_hints_aux_hint_del_with_pixmap(E_Pixmap *cp, int32_t id) { E_Comp_Wl_Client_Data *cdata; Eina_List *l, *ll; @@ -232,8 +147,8 @@ e_hints_aux_hint_del_with_pixmap(E_Pixmap *cp, int32_t id) return EINA_TRUE; } -EINTERN const char * -e_hints_aux_hint_value_get_with_pixmap(E_Pixmap *cp, const char *name) +static const char * +_e_hints_aux_hint_value_get_with_pixmap(E_Pixmap *cp, const char *name) { E_Comp_Wl_Client_Data *cdata; Eina_List *l; @@ -256,3 +171,88 @@ e_hints_aux_hint_value_get_with_pixmap(E_Pixmap *cp, const char *name) return res; } + +E_API void +e_hints_window_visible_set(E_Client *ec) +{ + (void)ec; +} + +EINTERN void +e_hints_scale_update(void) +{ + Eina_List *l; + E_Comp_Wl_Output *output; + + EINA_LIST_FOREACH(e_comp_wl->outputs, l, output) + output->scale = e_scale; +} + +E_API const Eina_List * +e_hints_aux_hint_supported_add(const char *hint) +{ + Eina_List *l; + const char *supported; + + EINA_LIST_FOREACH(aux_hints_supported, l, supported) + { + if (!strcmp(supported, hint)) + return aux_hints_supported; + } + + aux_hints_supported = eina_list_append(aux_hints_supported, hint); + + return aux_hints_supported; +} + +E_API const Eina_List * +e_hints_aux_hint_supported_del(const char *hint) +{ + Eina_List *l; + const char *supported; + + EINA_LIST_FOREACH(aux_hints_supported, l, supported) + { + if (!strcmp(supported, hint)) + { + aux_hints_supported = eina_list_remove(aux_hints_supported, hint); + break; + } + } + + return aux_hints_supported; +} + +EINTERN const Eina_List * +e_hints_aux_hint_supported_get(void) +{ + return aux_hints_supported; +} + +E_API Eina_Bool +e_hints_aux_hint_add(E_Client *ec, int32_t id, const char *name, const char *val) +{ + if (!ec) return EINA_FALSE; + return _e_hints_aux_hint_add_with_pixmap(ec->pixmap, id, name, val); +} + +EINTERN Eina_Bool +e_hints_aux_hint_change(E_Client *ec, int32_t id, const char *val) +{ + if (!ec) return EINA_FALSE; + return _e_hints_aux_hint_change_with_pixmap(ec->pixmap, id, val); +} + +E_API Eina_Bool +e_hints_aux_hint_del(E_Client *ec, int32_t id) +{ + if (!ec) return EINA_FALSE; + return _e_hints_aux_hint_del_with_pixmap(ec->pixmap, id); +} + +E_API const char * +e_hints_aux_hint_value_get(E_Client *ec, const char *name) +{ + if (!ec) return NULL; + return _e_hints_aux_hint_value_get_with_pixmap(ec->pixmap, name); +} diff --git a/src/bin/e_hints.h b/src/bin/e_hints.h index 4a12fea..3e62578 100644 --- a/src/bin/e_hints.h +++ b/src/bin/e_hints.h @@ -16,10 +16,5 @@ EINTERN Eina_Bool e_hints_aux_hint_change(E_Client *ec, int32_t id, const char * E_API Eina_Bool e_hints_aux_hint_del(E_Client *ec, int32_t id); E_API const char * e_hints_aux_hint_value_get(E_Client *ec, const char *name); -EINTERN Eina_Bool e_hints_aux_hint_add_with_pixmap(E_Pixmap *cp, int32_t id, const char *name, const char *val); -EINTERN Eina_Bool e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t id, const char *val); -EINTERN Eina_Bool e_hints_aux_hint_del_with_pixmap(E_Pixmap *cp, int32_t id); -EINTERN const char * e_hints_aux_hint_value_get_with_pixmap(E_Pixmap *cp, const char *name); - #endif #endif