Tizen 2.1 release
[platform/core/uifw/e17.git] / src / modules / wl_shell / e_desktop_shell_protocol.c
1 #include <stdlib.h>
2 #include <stdint.h>
3 #include "wayland-util.h"
4
5 extern const struct wl_interface wl_output_interface;
6 extern const struct wl_interface wl_shell_surface_interface;
7 extern const struct wl_interface wl_output_interface;
8 extern const struct wl_interface wl_shell_surface_interface;
9 extern const struct wl_interface wl_shell_surface_interface;
10 extern const struct wl_interface wl_shell_surface_interface;
11 extern const struct wl_interface wl_shell_surface_interface;
12 extern const struct wl_interface wl_output_interface;
13
14 static const struct wl_interface *types[] = {
15         &wl_output_interface,
16         &wl_shell_surface_interface,
17         &wl_output_interface,
18         &wl_shell_surface_interface,
19         &wl_shell_surface_interface,
20         NULL,
21         NULL,
22         &wl_shell_surface_interface,
23         NULL,
24         NULL,
25         &wl_shell_surface_interface,
26         &wl_output_interface,
27 };
28
29 static const struct wl_message desktop_shell_requests[] = {
30         { "set_background", "oo", types + 0 },
31         { "set_panel", "oo", types + 2 },
32         { "set_lock_surface", "o", types + 4 },
33         { "unlock", "", types + 0 },
34 };
35
36 static const struct wl_message desktop_shell_events[] = {
37         { "configure", "uuoii", types + 5 },
38         { "prepare_lock_surface", "", types + 0 },
39 };
40
41 WL_EXPORT const struct wl_interface desktop_shell_interface = {
42         "desktop_shell", 1,
43         ARRAY_LENGTH(desktop_shell_requests), desktop_shell_requests,
44         ARRAY_LENGTH(desktop_shell_events), desktop_shell_events,
45 };
46
47 static const struct wl_message screensaver_requests[] = {
48         { "set_surface", "oo", types + 10 },
49 };
50
51 WL_EXPORT const struct wl_interface screensaver_interface = {
52         "screensaver", 1,
53         ARRAY_LENGTH(screensaver_requests), screensaver_requests,
54         0, NULL,
55 };
56