From: Sung-Jin Park Date: Sat, 24 Jul 2021 18:22:15 +0000 (+0900) Subject: mmi-client: added api for getting sender variable of a client X-Git-Tag: accepted/tizen/unified/20210914.053333~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44ea61e9431def6f5059dedabc82bd7c38bfe335;p=platform%2Fcore%2Fuifw%2Fmmi-manager.git mmi-client: added api for getting sender variable of a client Change-Id: I7510369c544db45b985fa88787851d6300a8aec0 Signed-off-by: Sung-Jin Park --- diff --git a/src/mmi-client.c b/src/mmi-client.c index eb6904c..1f00e73 100644 --- a/src/mmi-client.c +++ b/src/mmi-client.c @@ -225,6 +225,15 @@ client_manager_get_client_has_focus(mmi_client *client) return client->has_focus; } +const char * +client_manager_get_client_sender(mmi_client *client) +{ + if (!client) + return NULL; + + return client->sender; +} + static void _cleanup_client_hash(void) { diff --git a/src/mmi-client.h b/src/mmi-client.h index 618c896..92dedbd 100644 --- a/src/mmi-client.h +++ b/src/mmi-client.h @@ -44,6 +44,7 @@ mmi_state client_manager_set_client_state(mmi_client *client, mmi_state state); mmi_state client_manager_get_client_state(mmi_client *client); bool client_manager_set_client_has_focus(mmi_client *client, bool has_focus); bool client_manager_get_client_has_focus(mmi_client *client); +const char *client_manager_get_client_sender(mmi_client *client); void *client_manager_set_client_focus_cb_handle(mmi_client *client, void *focus_cb_h); void *client_manager_get_client_focus_cb_handle(mmi_client *client);