e_policy_wl: Change iconify/uniconify function type to E_API 73/110973/2 accepted/tizen/3.0/common/20170125.121659 accepted/tizen/3.0/ivi/20170125.083934 accepted/tizen/3.0/mobile/20170125.083754 accepted/tizen/3.0/tv/20170125.083843 accepted/tizen/3.0/wearable/20170125.083915 accepted/tizen/common/20170124.182141 accepted/tizen/ivi/20170125.090015 accepted/tizen/mobile/20170125.085921 accepted/tizen/tv/20170125.085939 accepted/tizen/wearable/20170125.085954 submit/tizen/20170124.112050 submit/tizen_3.0/20170124.112008
authorSeungjin Park <sj8808.park@samsung.com>
Thu, 19 Jan 2017 05:16:16 +0000 (14:16 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 24 Jan 2017 11:21:53 +0000 (03:21 -0800)
Change-Id: I18822d78915699c4f901e8ece5dba86dbd5515b6
Signed-off-by: Seungjin Park <sj8808.park@samsung.com>
src/bin/e_policy_wl.c
src/bin/e_policy_wl.h

index 6eca8a5..83f59ff 100644 (file)
@@ -2079,12 +2079,10 @@ _tzpol_iface_cb_opaque_state_set(struct wl_client *client, struct wl_resource *r
 // --------------------------------------------------------
 // iconify
 // --------------------------------------------------------
-static void
-_tzpol_iface_cb_iconify(struct wl_client *client EINA_UNUSED, struct wl_resource *res_tzpol EINA_UNUSED, struct wl_resource *surf)
-{
-   E_Client *ec;
 
-   ec = wl_resource_get_user_data(surf);
+E_API void
+e_policy_wl_iconify(E_Client *ec)
+{
    EINA_SAFETY_ON_NULL_RETURN(ec);
    EINA_SAFETY_ON_NULL_RETURN(ec->frame);
 
@@ -2095,12 +2093,9 @@ _tzpol_iface_cb_iconify(struct wl_client *client EINA_UNUSED, struct wl_resource
    EC_CHANGED(ec);
 }
 
-static void
-_tzpol_iface_cb_uniconify(struct wl_client *client EINA_UNUSED, struct wl_resource *res_tzpol EINA_UNUSED, struct wl_resource *surf)
+E_API void
+e_policy_wl_uniconify(E_Client *ec)
 {
-   E_Client *ec;
-
-   ec = wl_resource_get_user_data(surf);
    EINA_SAFETY_ON_NULL_RETURN(ec);
    EINA_SAFETY_ON_NULL_RETURN(ec->frame);
 
@@ -2124,6 +2119,24 @@ _tzpol_iface_cb_uniconify(struct wl_client *client EINA_UNUSED, struct wl_resour
 }
 
 static void
+_tzpol_iface_cb_iconify(struct wl_client *client EINA_UNUSED, struct wl_resource *res_tzpol EINA_UNUSED, struct wl_resource *surf)
+{
+   E_Client *ec;
+
+   ec = wl_resource_get_user_data(surf);
+   e_policy_wl_iconify(ec);
+}
+
+static void
+_tzpol_iface_cb_uniconify(struct wl_client *client EINA_UNUSED, struct wl_resource *res_tzpol EINA_UNUSED, struct wl_resource *surf)
+{
+   E_Client *ec;
+
+   ec = wl_resource_get_user_data(surf);
+   e_policy_wl_uniconify(ec);
+}
+
+static void
 _e_policy_wl_allowed_aux_hint_send(E_Client *ec, int id)
 {
    E_Policy_Wl_Tzpol *tzpol;
index e9eeb9d..629e080 100644 (file)
@@ -15,8 +15,10 @@ void      e_policy_wl_pixmap_del(E_Pixmap *cp);
 void      e_policy_wl_visibility_send(E_Client *ec, int vis);
 
 /* iconify */
-Eina_Bool e_policy_wl_iconify_state_supported_get(E_Client *ec);
-void      e_policy_wl_iconify_state_change_send(E_Client *ec, int iconic);
+Eina_Bool  e_policy_wl_iconify_state_supported_get(E_Client *ec);
+void       e_policy_wl_iconify_state_change_send(E_Client *ec, int iconic);
+E_API void e_policy_wl_iconify(E_Client *ec);
+E_API void e_policy_wl_uniconify(E_Client *ec);
 
 /* position */
 void      e_policy_wl_position_send(E_Client *ec);