e_comp_screen: add implementation for version 2 of tizen_policy 65/144465/2 accepted/tizen/4.0/unified/20170828.222307 accepted/tizen/unified/20170818.083247 submit/tizen/20170817.045450 submit/tizen_4.0/20170828.100005
authorJunSeok, Kim <juns.kim@samsung.com>
Wed, 16 Aug 2017 07:13:30 +0000 (16:13 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 17 Aug 2017 04:50:10 +0000 (04:50 +0000)
The destructor added to tizen_policy so add the implementation of server
side.

Change-Id: I170a277b4891301aba53ce75747119821c13d34d

src/bin/e_comp_screen.c

index 71e9884..ee023b7 100644 (file)
@@ -76,9 +76,16 @@ _tz_screen_rotation_get_ignore_output_transform(struct wl_client *client, struct
    tzsr_list = eina_list_append(tzsr_list, tzsr);
 }
 
+static void
+_tz_screen_rotation_iface_cb_destroy(struct wl_client *client, struct wl_resource *resource)
+{
+   wl_resource_destroy(resource);
+}
+
 static const struct tizen_screen_rotation_interface _tz_screen_rotation_interface =
 {
    _tz_screen_rotation_get_ignore_output_transform,
+   _tz_screen_rotation_iface_cb_destroy,
 };
 
 static void
@@ -961,7 +968,7 @@ e_comp_screen_init()
    e_main_ts("\tE_Comp_WL Keymap Init Done");
 
    /* try to add tizen_video to wayland globals */
-   if (!wl_global_create(e_comp_wl->wl.disp, &tizen_screen_rotation_interface, 1,
+   if (!wl_global_create(e_comp_wl->wl.disp, &tizen_screen_rotation_interface, 2,
                          NULL, _tz_screen_rotation_cb_bind))
      {
         ERR("Could not add tizen_screen_rotation to wayland globals");