From 44ea61e9431def6f5059dedabc82bd7c38bfe335 Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Sun, 25 Jul 2021 03:22:15 +0900 Subject: [PATCH] mmi-client: added api for getting sender variable of a client Change-Id: I7510369c544db45b985fa88787851d6300a8aec0 Signed-off-by: Sung-Jin Park --- src/mmi-client.c | 9 +++++++++ src/mmi-client.h | 1 + 2 files changed, 10 insertions(+) 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); -- 2.7.4