DSDebug: Added LCOV_EXCL to whole code
[platform/core/uifw/libds.git] / src / DSWaylandServer / tizen_policy_ext-protocol.c
1 #include <stdlib.h>
2 #include <stdint.h>
3 #include "wayland-util.h"
4
5 extern const struct wl_interface tizen_rotation_interface;
6 extern const struct wl_interface wl_surface_interface;
7
8 static const struct wl_interface *types[] = {
9         NULL,
10         NULL,
11         NULL,
12         NULL,
13         NULL,
14         &tizen_rotation_interface,
15         &wl_surface_interface,
16         &wl_surface_interface,
17 };
18
19 static const struct wl_message tizen_policy_ext_requests[] = {
20         { "get_rotation", "no", types + 5 },
21         { "get_active_angle", "?o", types + 7 },
22 };
23
24 static const struct wl_message tizen_policy_ext_events[] = {
25         { "active_angle", "u", types + 0 },
26 };
27
28 WL_EXPORT const struct wl_interface tizen_policy_ext_interface3 = {
29         "tizen_policy_ext", 3,
30         2, tizen_policy_ext_requests,
31         1, tizen_policy_ext_events,
32 };
33
34 static const struct wl_message tizen_rotation_requests[] = {
35         { "destroy", "", types + 0 },
36         { "set_available_angles", "u", types + 0 },
37         { "set_preferred_angle", "u", types + 0 },
38         { "ack_angle_change", "u", types + 0 },
39         { "set_geometry_hint", "3uuuuu", types + 0 },
40 };
41
42 static const struct wl_message tizen_rotation_events[] = {
43         { "available_angles_done", "u", types + 0 },
44         { "preferred_angle_done", "u", types + 0 },
45         { "angle_change", "uu", types + 0 },
46         { "angle_change_with_resize", "2uuuu", types + 0 },
47 };
48
49 WL_EXPORT const struct wl_interface tizen_rotation_interface = {
50         "tizen_rotation", 3,
51         5, tizen_rotation_requests,
52         4, tizen_rotation_events,
53 };
54