support screenshot for wayland
[platform/core/api/efl-util.git] / src / screenshooter-protocol.c
1 #include <stdlib.h>
2 #include <stdint.h>
3 #include "wayland-util.h"
4
5 extern const struct wl_interface wl_buffer_interface;
6 extern const struct wl_interface wl_output_interface;
7
8 static const struct wl_interface *types[] = {
9         &wl_output_interface,
10         &wl_buffer_interface,
11 };
12
13 static const struct wl_message screenshooter_requests[] = {
14         { "shoot", "oo", types + 0 },
15 };
16
17 static const struct wl_message screenshooter_events[] = {
18         { "done", "", types + 0 },
19 };
20
21 WL_EXPORT const struct wl_interface screenshooter_interface = {
22         "screenshooter", 1,
23         1, screenshooter_requests,
24         1, screenshooter_events,
25 };