summaryrefslogtreecommitdiff
path: root/src/lib/ecore_buffer/bq_mgr_protocol.c
blob: fe8b98c9bc05a3cde77954cd9e81f1fc2807fe11 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#include <stdlib.h>
#include <stdint.h>
#include "wayland-util.h"

extern const struct wl_interface bq_buffer_interface;
extern const struct wl_interface bq_consumer_interface;
extern const struct wl_interface bq_provider_interface;

static const struct wl_interface *types[] = {
	NULL,
	NULL,
	NULL,
	&bq_consumer_interface,
	NULL,
	NULL,
	NULL,
	NULL,
	&bq_provider_interface,
	NULL,
	&bq_buffer_interface,
	&bq_buffer_interface,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	&bq_buffer_interface,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	&bq_buffer_interface,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	&bq_buffer_interface,
	&bq_buffer_interface,
	NULL,
	&bq_buffer_interface,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	&bq_buffer_interface,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	&bq_buffer_interface,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	&bq_buffer_interface,
	&bq_buffer_interface,
	NULL,
	&bq_buffer_interface,
	NULL,
};

static const struct wl_message bq_mgr_requests[] = {
	{ "create_consumer", "nsiii", types + 3 },
	{ "create_provider", "ns", types + 8 },
};

WL_EXPORT const struct wl_interface bq_mgr_interface = {
	"bq_mgr", 1,
	2, bq_mgr_requests,
	0, NULL,
};

static const struct wl_message bq_consumer_requests[] = {
	{ "release_buffer", "o", types + 10 },
};

static const struct wl_message bq_consumer_events[] = {
	{ "connected", "", types + 0 },
	{ "disconnected", "", types + 0 },
	{ "buffer_attached", "nsiiiu", types + 11 },
	{ "set_buffer_id", "oiiiiiii", types + 17 },
	{ "set_buffer_fd", "ohiiiiii", types + 25 },
	{ "buffer_detached", "o", types + 33 },
	{ "add_buffer", "ou", types + 34 },
};

WL_EXPORT const struct wl_interface bq_consumer_interface = {
	"bq_consumer", 1,
	1, bq_consumer_requests,
	7, bq_consumer_events,
};

static const struct wl_message bq_provider_requests[] = {
	{ "attach_buffer", "nsiiiu", types + 36 },
	{ "set_buffer_id", "oiiiiiii", types + 42 },
	{ "set_buffer_fd", "ohiiiiii", types + 50 },
	{ "detach_buffer", "o", types + 58 },
	{ "enqueue_buffer", "ou", types + 59 },
};

static const struct wl_message bq_provider_events[] = {
	{ "connected", "iii", types + 0 },
	{ "disconnected", "", types + 0 },
	{ "add_buffer", "ou", types + 61 },
};

WL_EXPORT const struct wl_interface bq_provider_interface = {
	"bq_provider", 1,
	5, bq_provider_requests,
	3, bq_provider_events,
};

WL_EXPORT const struct wl_interface bq_buffer_interface = {
	"bq_buffer", 1,
	0, NULL,
	0, NULL,
};