e_policy_wl: add implementation for version 6 of tizen_policy 59/144459/2
authorJunSeok, Kim <juns.kim@samsung.com>
Mon, 14 Aug 2017 02:22:34 +0000 (11:22 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 17 Aug 2017 01:34:50 +0000 (01:34 +0000)
The destructor added to tizen_policy so add the implementation of server side.

Change-Id: I3a18a6ee0a1be371157c3a1b9a7b07d89259e728

src/bin/e_policy_wl.c

index f8c5e8e60a752e20204ba27bca2ada8608e44163..d93dd978f108a856b81ad877da31af7190a9f648 100644 (file)
@@ -3169,6 +3169,12 @@ _tzpol_iface_cb_ack_conformant_region(struct wl_client *client, struct wl_resour
    e_policy_conformant_client_ack(ec, res_tzpol, serial);
 }
 
+static void
+_tzpol_iface_cb_destroy(struct wl_client *client, struct wl_resource *res_tzpol)
+{
+   wl_resource_destroy(res_tzpol);
+}
+
 // --------------------------------------------------------
 // tizen_policy_interface
 // --------------------------------------------------------
@@ -3211,6 +3217,7 @@ static const struct tizen_policy_interface _tzpol_iface =
    _tzpol_iface_cb_subsurf_watcher_get,
    _tzpol_iface_cb_parent_set,
    _tzpol_iface_cb_ack_conformant_region,
+   _tzpol_iface_cb_destroy,
 };
 
 static void
@@ -6807,7 +6814,7 @@ e_policy_wl_init(void)
    /* create globals */
    global = wl_global_create(e_comp_wl->wl.disp,
                              &tizen_policy_interface,
-                             5,
+                             6,
                              NULL,
                              _tzpol_cb_bind);
    EINA_SAFETY_ON_NULL_GOTO(global, err);