e_policy_wl: add destroy of tizen_subsurface_watcher
authorJunSeok, Kim <juns.kim@samsung.com>
Thu, 7 Sep 2017 11:39:57 +0000 (20:39 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Wed, 20 Sep 2017 04:31:34 +0000 (13:31 +0900)
The destructor added to tizen_subsurface_watcher so add the
implementation of serverside.

Change-Id: I70185096ef5f5a42611fe951267f8e4f3736ac2e

src/bin/e_policy_wl.c

index 1303c30ae10dcfc4791e3fcb75009d31df8d50f4..1b7485983c0bdd059267812905c69ae31b155bcf 100644 (file)
@@ -3101,6 +3101,17 @@ _tzpol_iface_cb_subsurf_watcher_destroy(struct wl_resource *resource)
    ec->comp_data->sub.watcher = NULL;
 }
 
+static void
+_tzpol_subsurf_watcher_iface_cb_destroy(struct wl_client *client, struct wl_resource *resource)
+{
+   wl_resource_destroy(resource);
+}
+
+static const struct tizen_subsurface_watcher_interface _tzpol_subsurf_watcher_iface =
+{
+   _tzpol_subsurf_watcher_iface_cb_destroy,
+};
+
 static void
 _tzpol_iface_cb_subsurf_watcher_get(struct wl_client *client, struct wl_resource *res_tzpol, uint32_t id, struct wl_resource *surface)
 {
@@ -3118,7 +3129,7 @@ _tzpol_iface_cb_subsurf_watcher_get(struct wl_client *client, struct wl_resource
 
    ec->comp_data->sub.watcher = res;
 
-   wl_resource_set_implementation(res, NULL, ec, _tzpol_iface_cb_subsurf_watcher_destroy);
+   wl_resource_set_implementation(res, &_tzpol_subsurf_watcher_iface, ec, _tzpol_iface_cb_subsurf_watcher_destroy);
 }
 
 static void