summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/teamwork_protocol.c
blob: baca23d3b002183ec2f3cbe6b11d943904230983 (plain)
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
42
43
44
45
46
#include <stdlib.h>
#include <stdint.h>
#include "wayland-util.h"

extern const struct wl_interface wl_surface_interface;

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

static const struct wl_message zwp_teamwork_requests[] = {
	{ "preload_uri", "os", types + 0 },
	{ "activate_uri", "osff", types + 2 },
	{ "deactivate_uri", "os", types + 6 },
	{ "open_uri", "os", types + 8 },
};

static const struct wl_message zwp_teamwork_events[] = {
	{ "fetching_uri", "os", types + 10 },
	{ "completed_uri", "osi", types + 12 },
	{ "fetch_info", "osu", types + 15 },
};

WL_EXPORT const struct wl_interface zwp_teamwork_interface = {
	"zwp_teamwork", 2,
	4, zwp_teamwork_requests,
	3, zwp_teamwork_events,
};