From 6f7466a3b52cc3b4b51daa09493be9ddaa2bc85d Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Tue, 16 Jul 2024 08:42:19 +0900 Subject: [PATCH] e_comp_wl: add E_APIs for checking comp_data of E_Client Change-Id: I9a1ce6e5e4969a53077fb30c3ebd3aae84da4fbc --- src/bin/server/e_comp_wl.c | 7 +++++++ src/include/e_comp_wl.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/bin/server/e_comp_wl.c b/src/bin/server/e_comp_wl.c index 32b30d834f..c005bf3d2b 100644 --- a/src/bin/server/e_comp_wl.c +++ b/src/bin/server/e_comp_wl.c @@ -4161,6 +4161,13 @@ e_comp_wl_touch_cancel(void) /////////////////////////////////////////////////////////// // This is for getting/setting internal value of E_Comp_Wl_Client_Data +E_API Eina_Bool +e_comp_wl_data_check(E_Client *ec) +{ + EINA_SAFETY_ON_NULL_RETURN_VAL(ec, EINA_FALSE); + + return ec->comp_data ? EINA_TRUE : EINA_FALSE; +} E_API Eina_Bool e_comp_wl_aux_hint_changed_get(E_Client *ec) diff --git a/src/include/e_comp_wl.h b/src/include/e_comp_wl.h index 34b537cd91..350c206233 100644 --- a/src/include/e_comp_wl.h +++ b/src/include/e_comp_wl.h @@ -604,6 +604,8 @@ E_API void e_comp_wl_input_cursor_timer_enable_set(Eina_Boo /////////////////////////////////////////////////////////// // This is for getting/setting internal value of E_Comp_Wl_Client_Data +E_API Eina_Bool e_comp_wl_data_check(E_Client *ec); + E_API Eina_Bool e_comp_wl_aux_hint_changed_get(E_Client *ec); E_API E_Comp_Wl_Buffer *e_comp_wl_buffer_ref_buffer_get(E_Client *ec); -- 2.34.1