e_client: add e_client_cdata_get function 58/244758/3
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 23 Sep 2020 23:57:11 +0000 (08:57 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 28 Oct 2020 23:06:41 +0000 (23:06 +0000)
The e_client provides e_client_cdata_get() function.
A user can get the ec->comp_data with this function.

Change-Id: I2c5206d4b2d311d283303478a66016cc1cacb7ca

src/bin/e_client.c
src/bin/e_client.h

index ca3c498..817767f 100644 (file)
@@ -8296,3 +8296,10 @@ e_client_surface_tree_foreach(E_Client *ec, E_Client_Surface_Tree_Foreach func,
 
    _e_client_surface_tree_foreach_helper(ec, func, data);
 }
+
+EINTERN E_Comp_Wl_Client_Data *e_client_cdata_get(E_Client *ec)
+{
+   if (!ec) return NULL;
+
+   return ec->comp_data;
+}
index 92e0277..dd6a421 100644 (file)
@@ -1254,6 +1254,9 @@ E_API int       e_client_show_pending_unset(E_Client *ec);
 
 EINTERN void    e_client_surface_tree_foreach(E_Client *ec, E_Client_Surface_Tree_Foreach func, void *data);
 
+// get a comp_data from a ec
+EINTERN E_Comp_Wl_Client_Data   *e_client_cdata_get(E_Client *ec);
+
 /**
  * Move window to coordinates that do not account client decorations yet.
  *