summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/www-protocol.c
blob: 952b333b58c6ae0786da3ce395329f2c4e886d29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <stdlib.h>
#include <stdint.h>
#include "wayland-util.h"

extern const struct wl_interface wl_surface_interface;
extern const struct wl_interface www_surface_interface;

static const struct wl_interface *types[] = {
	NULL,
	NULL,
	NULL,
	&www_surface_interface,
	&wl_surface_interface,
};

static const struct wl_message www_requests[] = {
	{ "create", "no", types + 3 },
};

WL_EXPORT const struct wl_interface www_interface = {
	"www", 1,
	1, www_requests,
	0, NULL,
};

static const struct wl_message www_surface_requests[] = {
	{ "destroy", "", types + 0 },
};

static const struct wl_message www_surface_events[] = {
	{ "status", "iiu", types + 0 },
	{ "start_drag", "", types + 0 },
	{ "end_drag", "", types + 0 },
};

WL_EXPORT const struct wl_interface www_surface_interface = {
	"www_surface", 1,
	1, www_surface_requests,
	3, www_surface_events,
};