e_policy_wl: add implementation for version 2 of tizen_display_policy 64/144464/2
authorJunSeok, Kim <juns.kim@samsung.com>
Wed, 16 Aug 2017 07:12:48 +0000 (16:12 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 17 Aug 2017 03:57:39 +0000 (03:57 +0000)
The destructor added to tizen_display_policy so add the implementation
of server side.

Change-Id: If4727b13587128cd6b6f22f93a38113acdb1151e

src/bin/e_policy_wl.c

index d7874136b2221c5d062342de9645dfb1e090e31c..d1e2845d50b8c75042e2072a8f4382fafee5d8f5 100644 (file)
@@ -3087,6 +3087,12 @@ _tz_dpy_pol_iface_cb_brightness_set(struct wl_client *client, struct wl_resource
       (res_tz_dpy_pol, surf, brightness, TIZEN_DISPLAY_POLICY_ERROR_STATE_NONE);
 }
 
+static void
+_tz_dpy_pol_iface_cb_destroy(struct wl_client *client, struct wl_resource *resource)
+{
+   wl_resource_destroy(resource);
+}
+
 static void
 _tzpol_iface_cb_subsurf_watcher_destroy(struct wl_resource *resource)
 {
@@ -3279,6 +3285,7 @@ err:
 static const struct tizen_display_policy_interface _tz_dpy_pol_iface =
 {
    _tz_dpy_pol_iface_cb_brightness_set,
+   _tz_dpy_pol_iface_cb_destroy,
 };
 
 static void
@@ -6843,7 +6850,7 @@ e_policy_wl_init(void)
 
    global = wl_global_create(e_comp_wl->wl.disp,
                              &tizen_display_policy_interface,
-                             1,
+                             2,
                              NULL,
                              _tz_dpy_pol_cb_bind);
    EINA_SAFETY_ON_NULL_GOTO(global, err);