mmi-client: added api for getting sender variable of a client 35/264035/1
authorSung-Jin Park <sj76.park@samsung.com>
Sat, 24 Jul 2021 18:22:15 +0000 (03:22 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Sep 2021 11:24:27 +0000 (20:24 +0900)
Change-Id: I7510369c544db45b985fa88787851d6300a8aec0
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/mmi-client.c
src/mmi-client.h

index eb6904c..1f00e73 100644 (file)
@@ -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)
 {
index 618c896..92dedbd 100644 (file)
@@ -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);