SDL  2.0
wayland-protocol.c
Go to the documentation of this file.
1 /* Generated by wayland-scanner 1.18.0 */
2 
3 /*
4  * Copyright © 2008-2011 Kristian Høgsberg
5  * Copyright © 2010-2011 Intel Corporation
6  * Copyright © 2012-2013 Collabora, Ltd.
7  *
8  * Permission is hereby granted, free of charge, to any person
9  * obtaining a copy of this software and associated documentation files
10  * (the "Software"), to deal in the Software without restriction,
11  * including without limitation the rights to use, copy, modify, merge,
12  * publish, distribute, sublicense, and/or sell copies of the Software,
13  * and to permit persons to whom the Software is furnished to do so,
14  * subject to the following conditions:
15  *
16  * The above copyright notice and this permission notice (including the
17  * next paragraph) shall be included in all copies or substantial
18  * portions of the Software.
19  *
20  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
24  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27  * SOFTWARE.
28  */
29 
30 #include <stdlib.h>
31 #include <stdint.h>
32 #include "wayland-util.h"
33 
34 extern const struct wl_interface wl_buffer_interface;
35 extern const struct wl_interface wl_callback_interface;
36 extern const struct wl_interface wl_data_device_interface;
37 extern const struct wl_interface wl_data_offer_interface;
38 extern const struct wl_interface wl_data_source_interface;
39 extern const struct wl_interface wl_keyboard_interface;
40 extern const struct wl_interface wl_output_interface;
41 extern const struct wl_interface wl_pointer_interface;
42 extern const struct wl_interface wl_region_interface;
43 extern const struct wl_interface wl_registry_interface;
44 extern const struct wl_interface wl_seat_interface;
45 extern const struct wl_interface wl_shell_surface_interface;
46 extern const struct wl_interface wl_shm_pool_interface;
47 extern const struct wl_interface wl_subsurface_interface;
48 extern const struct wl_interface wl_surface_interface;
49 extern const struct wl_interface wl_touch_interface;
50 
51 static const struct wl_interface *wayland_types[] = {
52  NULL,
53  NULL,
54  NULL,
55  NULL,
56  NULL,
57  NULL,
58  NULL,
59  NULL,
65  NULL,
66  NULL,
67  NULL,
68  NULL,
69  NULL,
71  NULL,
72  NULL,
76  NULL,
78  NULL,
80  NULL,
82  NULL,
83  NULL,
92  NULL,
94  NULL,
95  NULL,
97  NULL,
98  NULL,
99  NULL,
100  NULL,
101  NULL,
104  NULL,
106  NULL,
107  NULL,
108  NULL,
111  NULL,
112  NULL,
121  NULL,
123  NULL,
124  NULL,
125  NULL,
127  NULL,
128  NULL,
129  NULL,
131  NULL,
133  NULL,
134  NULL,
136  NULL,
137  NULL,
139  NULL,
140  NULL,
141  NULL,
147 };
148 
149 static const struct wl_message wl_display_requests[] = {
150  { "sync", "n", wayland_types + 8 },
151  { "get_registry", "n", wayland_types + 9 },
152 };
153 
154 static const struct wl_message wl_display_events[] = {
155  { "error", "ous", wayland_types + 0 },
156  { "delete_id", "u", wayland_types + 0 },
157 };
158 
159 WL_EXPORT const struct wl_interface wl_display_interface = {
160  "wl_display", 1,
163 };
164 
165 static const struct wl_message wl_registry_requests[] = {
166  { "bind", "usun", wayland_types + 0 },
167 };
168 
169 static const struct wl_message wl_registry_events[] = {
170  { "global", "usu", wayland_types + 0 },
171  { "global_remove", "u", wayland_types + 0 },
172 };
173 
174 WL_EXPORT const struct wl_interface wl_registry_interface = {
175  "wl_registry", 1,
178 };
179 
180 static const struct wl_message wl_callback_events[] = {
181  { "done", "u", wayland_types + 0 },
182 };
183 
184 WL_EXPORT const struct wl_interface wl_callback_interface = {
185  "wl_callback", 1,
186  0, NULL,
188 };
189 
190 static const struct wl_message wl_compositor_requests[] = {
191  { "create_surface", "n", wayland_types + 10 },
192  { "create_region", "n", wayland_types + 11 },
193 };
194 
195 WL_EXPORT const struct wl_interface wl_compositor_interface = {
196  "wl_compositor", 4,
198  0, NULL,
199 };
200 
201 static const struct wl_message wl_shm_pool_requests[] = {
202  { "create_buffer", "niiiiu", wayland_types + 12 },
203  { "destroy", "", wayland_types + 0 },
204  { "resize", "i", wayland_types + 0 },
205 };
206 
207 WL_EXPORT const struct wl_interface wl_shm_pool_interface = {
208  "wl_shm_pool", 1,
210  0, NULL,
211 };
212 
213 static const struct wl_message wl_shm_requests[] = {
214  { "create_pool", "nhi", wayland_types + 18 },
215 };
216 
217 static const struct wl_message wl_shm_events[] = {
218  { "format", "u", wayland_types + 0 },
219 };
220 
221 WL_EXPORT const struct wl_interface wl_shm_interface = {
222  "wl_shm", 1,
223  1, wl_shm_requests,
224  1, wl_shm_events,
225 };
226 
227 static const struct wl_message wl_buffer_requests[] = {
228  { "destroy", "", wayland_types + 0 },
229 };
230 
231 static const struct wl_message wl_buffer_events[] = {
232  { "release", "", wayland_types + 0 },
233 };
234 
235 WL_EXPORT const struct wl_interface wl_buffer_interface = {
236  "wl_buffer", 1,
238  1, wl_buffer_events,
239 };
240 
241 static const struct wl_message wl_data_offer_requests[] = {
242  { "accept", "u?s", wayland_types + 0 },
243  { "receive", "sh", wayland_types + 0 },
244  { "destroy", "", wayland_types + 0 },
245  { "finish", "3", wayland_types + 0 },
246  { "set_actions", "3uu", wayland_types + 0 },
247 };
248 
249 static const struct wl_message wl_data_offer_events[] = {
250  { "offer", "s", wayland_types + 0 },
251  { "source_actions", "3u", wayland_types + 0 },
252  { "action", "3u", wayland_types + 0 },
253 };
254 
255 WL_EXPORT const struct wl_interface wl_data_offer_interface = {
256  "wl_data_offer", 3,
259 };
260 
261 static const struct wl_message wl_data_source_requests[] = {
262  { "offer", "s", wayland_types + 0 },
263  { "destroy", "", wayland_types + 0 },
264  { "set_actions", "3u", wayland_types + 0 },
265 };
266 
267 static const struct wl_message wl_data_source_events[] = {
268  { "target", "?s", wayland_types + 0 },
269  { "send", "sh", wayland_types + 0 },
270  { "cancelled", "", wayland_types + 0 },
271  { "dnd_drop_performed", "3", wayland_types + 0 },
272  { "dnd_finished", "3", wayland_types + 0 },
273  { "action", "3u", wayland_types + 0 },
274 };
275 
276 WL_EXPORT const struct wl_interface wl_data_source_interface = {
277  "wl_data_source", 3,
280 };
281 
282 static const struct wl_message wl_data_device_requests[] = {
283  { "start_drag", "?oo?ou", wayland_types + 21 },
284  { "set_selection", "?ou", wayland_types + 25 },
285  { "release", "2", wayland_types + 0 },
286 };
287 
288 static const struct wl_message wl_data_device_events[] = {
289  { "data_offer", "n", wayland_types + 27 },
290  { "enter", "uoff?o", wayland_types + 28 },
291  { "leave", "", wayland_types + 0 },
292  { "motion", "uff", wayland_types + 0 },
293  { "drop", "", wayland_types + 0 },
294  { "selection", "?o", wayland_types + 33 },
295 };
296 
297 WL_EXPORT const struct wl_interface wl_data_device_interface = {
298  "wl_data_device", 3,
301 };
302 
303 static const struct wl_message wl_data_device_manager_requests[] = {
304  { "create_data_source", "n", wayland_types + 34 },
305  { "get_data_device", "no", wayland_types + 35 },
306 };
307 
308 WL_EXPORT const struct wl_interface wl_data_device_manager_interface = {
309  "wl_data_device_manager", 3,
311  0, NULL,
312 };
313 
314 static const struct wl_message wl_shell_requests[] = {
315  { "get_shell_surface", "no", wayland_types + 37 },
316 };
317 
318 WL_EXPORT const struct wl_interface wl_shell_interface = {
319  "wl_shell", 1,
321  0, NULL,
322 };
323 
324 static const struct wl_message wl_shell_surface_requests[] = {
325  { "pong", "u", wayland_types + 0 },
326  { "move", "ou", wayland_types + 39 },
327  { "resize", "ouu", wayland_types + 41 },
328  { "set_toplevel", "", wayland_types + 0 },
329  { "set_transient", "oiiu", wayland_types + 44 },
330  { "set_fullscreen", "uu?o", wayland_types + 48 },
331  { "set_popup", "ouoiiu", wayland_types + 51 },
332  { "set_maximized", "?o", wayland_types + 57 },
333  { "set_title", "s", wayland_types + 0 },
334  { "set_class", "s", wayland_types + 0 },
335 };
336 
337 static const struct wl_message wl_shell_surface_events[] = {
338  { "ping", "u", wayland_types + 0 },
339  { "configure", "uii", wayland_types + 0 },
340  { "popup_done", "", wayland_types + 0 },
341 };
342 
343 WL_EXPORT const struct wl_interface wl_shell_surface_interface = {
344  "wl_shell_surface", 1,
347 };
348 
349 static const struct wl_message wl_surface_requests[] = {
350  { "destroy", "", wayland_types + 0 },
351  { "attach", "?oii", wayland_types + 58 },
352  { "damage", "iiii", wayland_types + 0 },
353  { "frame", "n", wayland_types + 61 },
354  { "set_opaque_region", "?o", wayland_types + 62 },
355  { "set_input_region", "?o", wayland_types + 63 },
356  { "commit", "", wayland_types + 0 },
357  { "set_buffer_transform", "2i", wayland_types + 0 },
358  { "set_buffer_scale", "3i", wayland_types + 0 },
359  { "damage_buffer", "4iiii", wayland_types + 0 },
360 };
361 
362 static const struct wl_message wl_surface_events[] = {
363  { "enter", "o", wayland_types + 64 },
364  { "leave", "o", wayland_types + 65 },
365 };
366 
367 WL_EXPORT const struct wl_interface wl_surface_interface = {
368  "wl_surface", 4,
371 };
372 
373 static const struct wl_message wl_seat_requests[] = {
374  { "get_pointer", "n", wayland_types + 66 },
375  { "get_keyboard", "n", wayland_types + 67 },
376  { "get_touch", "n", wayland_types + 68 },
377  { "release", "5", wayland_types + 0 },
378 };
379 
380 static const struct wl_message wl_seat_events[] = {
381  { "capabilities", "u", wayland_types + 0 },
382  { "name", "2s", wayland_types + 0 },
383 };
384 
385 WL_EXPORT const struct wl_interface wl_seat_interface = {
386  "wl_seat", 6,
387  4, wl_seat_requests,
388  2, wl_seat_events,
389 };
390 
391 static const struct wl_message wl_pointer_requests[] = {
392  { "set_cursor", "u?oii", wayland_types + 69 },
393  { "release", "3", wayland_types + 0 },
394 };
395 
396 static const struct wl_message wl_pointer_events[] = {
397  { "enter", "uoff", wayland_types + 73 },
398  { "leave", "uo", wayland_types + 77 },
399  { "motion", "uff", wayland_types + 0 },
400  { "button", "uuuu", wayland_types + 0 },
401  { "axis", "uuf", wayland_types + 0 },
402  { "frame", "5", wayland_types + 0 },
403  { "axis_source", "5u", wayland_types + 0 },
404  { "axis_stop", "5uu", wayland_types + 0 },
405  { "axis_discrete", "5ui", wayland_types + 0 },
406 };
407 
408 WL_EXPORT const struct wl_interface wl_pointer_interface = {
409  "wl_pointer", 6,
412 };
413 
414 static const struct wl_message wl_keyboard_requests[] = {
415  { "release", "3", wayland_types + 0 },
416 };
417 
418 static const struct wl_message wl_keyboard_events[] = {
419  { "keymap", "uhu", wayland_types + 0 },
420  { "enter", "uoa", wayland_types + 79 },
421  { "leave", "uo", wayland_types + 82 },
422  { "key", "uuuu", wayland_types + 0 },
423  { "modifiers", "uuuuu", wayland_types + 0 },
424  { "repeat_info", "4ii", wayland_types + 0 },
425 };
426 
427 WL_EXPORT const struct wl_interface wl_keyboard_interface = {
428  "wl_keyboard", 6,
431 };
432 
433 static const struct wl_message wl_touch_requests[] = {
434  { "release", "3", wayland_types + 0 },
435 };
436 
437 static const struct wl_message wl_touch_events[] = {
438  { "down", "uuoiff", wayland_types + 84 },
439  { "up", "uui", wayland_types + 0 },
440  { "motion", "uiff", wayland_types + 0 },
441  { "frame", "", wayland_types + 0 },
442  { "cancel", "", wayland_types + 0 },
443  { "shape", "6iff", wayland_types + 0 },
444  { "orientation", "6if", wayland_types + 0 },
445 };
446 
447 WL_EXPORT const struct wl_interface wl_touch_interface = {
448  "wl_touch", 6,
450  7, wl_touch_events,
451 };
452 
453 static const struct wl_message wl_output_requests[] = {
454  { "release", "3", wayland_types + 0 },
455 };
456 
457 static const struct wl_message wl_output_events[] = {
458  { "geometry", "iiiiissi", wayland_types + 0 },
459  { "mode", "uiii", wayland_types + 0 },
460  { "done", "2", wayland_types + 0 },
461  { "scale", "2i", wayland_types + 0 },
462 };
463 
464 WL_EXPORT const struct wl_interface wl_output_interface = {
465  "wl_output", 3,
467  4, wl_output_events,
468 };
469 
470 static const struct wl_message wl_region_requests[] = {
471  { "destroy", "", wayland_types + 0 },
472  { "add", "iiii", wayland_types + 0 },
473  { "subtract", "iiii", wayland_types + 0 },
474 };
475 
476 WL_EXPORT const struct wl_interface wl_region_interface = {
477  "wl_region", 1,
479  0, NULL,
480 };
481 
482 static const struct wl_message wl_subcompositor_requests[] = {
483  { "destroy", "", wayland_types + 0 },
484  { "get_subsurface", "noo", wayland_types + 90 },
485 };
486 
487 WL_EXPORT const struct wl_interface wl_subcompositor_interface = {
488  "wl_subcompositor", 1,
490  0, NULL,
491 };
492 
493 static const struct wl_message wl_subsurface_requests[] = {
494  { "destroy", "", wayland_types + 0 },
495  { "set_position", "ii", wayland_types + 0 },
496  { "place_above", "o", wayland_types + 93 },
497  { "place_below", "o", wayland_types + 94 },
498  { "set_sync", "", wayland_types + 0 },
499  { "set_desync", "", wayland_types + 0 },
500 };
501 
502 WL_EXPORT const struct wl_interface wl_subsurface_interface = {
503  "wl_subsurface", 1,
505  0, NULL,
506 };
507 
wl_data_device_events
static const struct wl_message wl_data_device_events[]
Definition: wayland-protocol.c:288
wl_buffer_interface
const struct wl_interface wl_buffer_interface
Definition: wayland-protocol.c:235
wl_keyboard_events
static const struct wl_message wl_keyboard_events[]
Definition: wayland-protocol.c:418
wl_output_interface
const struct wl_interface wl_output_interface
Definition: wayland-protocol.c:464
wl_surface_events
static const struct wl_message wl_surface_events[]
Definition: wayland-protocol.c:362
NULL
#define NULL
Definition: begin_code.h:167
wl_shell_surface_interface
const struct wl_interface wl_shell_surface_interface
Definition: wayland-protocol.c:343
wl_output_requests
static const struct wl_message wl_output_requests[]
Definition: wayland-protocol.c:453
wl_shm_pool_interface
const struct wl_interface wl_shm_pool_interface
Definition: wayland-protocol.c:207
wl_shell_requests
static const struct wl_message wl_shell_requests[]
Definition: wayland-protocol.c:314
wl_subsurface_interface
const struct wl_interface wl_subsurface_interface
Definition: wayland-protocol.c:502
wl_surface_interface
const struct wl_interface wl_surface_interface
Definition: wayland-protocol.c:367
wl_data_source_interface
const struct wl_interface wl_data_source_interface
Definition: wayland-protocol.c:276
wl_shell_interface
WL_EXPORT const struct wl_interface wl_shell_interface
Definition: wayland-protocol.c:318
wl_surface_requests
static const struct wl_message wl_surface_requests[]
Definition: wayland-protocol.c:349
wl_pointer_requests
static const struct wl_message wl_pointer_requests[]
Definition: wayland-protocol.c:391
wl_region_interface
const struct wl_interface wl_region_interface
Definition: wayland-protocol.c:476
wl_data_source_requests
static const struct wl_message wl_data_source_requests[]
Definition: wayland-protocol.c:261
wl_data_offer_requests
static const struct wl_message wl_data_offer_requests[]
Definition: wayland-protocol.c:241
wl_display_interface
WL_EXPORT const struct wl_interface wl_display_interface
Definition: wayland-protocol.c:159
wl_buffer_events
static const struct wl_message wl_buffer_events[]
Definition: wayland-protocol.c:231
wl_data_device_requests
static const struct wl_message wl_data_device_requests[]
Definition: wayland-protocol.c:282
wl_compositor_interface
WL_EXPORT const struct wl_interface wl_compositor_interface
Definition: wayland-protocol.c:195
wl_subcompositor_requests
static const struct wl_message wl_subcompositor_requests[]
Definition: wayland-protocol.c:482
wl_shm_pool_requests
static const struct wl_message wl_shm_pool_requests[]
Definition: wayland-protocol.c:201
wayland_types
static const struct wl_interface * wayland_types[]
Definition: wayland-protocol.c:51
wl_data_offer_events
static const struct wl_message wl_data_offer_events[]
Definition: wayland-protocol.c:249
wl_data_device_manager_requests
static const struct wl_message wl_data_device_manager_requests[]
Definition: wayland-protocol.c:303
wl_touch_events
static const struct wl_message wl_touch_events[]
Definition: wayland-protocol.c:437
wl_buffer_requests
static const struct wl_message wl_buffer_requests[]
Definition: wayland-protocol.c:227
wl_touch_interface
const struct wl_interface wl_touch_interface
Definition: wayland-protocol.c:447
wl_region_requests
static const struct wl_message wl_region_requests[]
Definition: wayland-protocol.c:470
wl_shm_interface
WL_EXPORT const struct wl_interface wl_shm_interface
Definition: wayland-protocol.c:221
wl_data_offer_interface
const struct wl_interface wl_data_offer_interface
Definition: wayland-protocol.c:255
wl_callback_interface
const struct wl_interface wl_callback_interface
Definition: wayland-protocol.c:184
wl_seat_events
static const struct wl_message wl_seat_events[]
Definition: wayland-protocol.c:380
wl_shm_requests
static const struct wl_message wl_shm_requests[]
Definition: wayland-protocol.c:213
wl_display_requests
static const struct wl_message wl_display_requests[]
Definition: wayland-protocol.c:149
wl_output_events
static const struct wl_message wl_output_events[]
Definition: wayland-protocol.c:457
wl_keyboard_interface
const struct wl_interface wl_keyboard_interface
Definition: wayland-protocol.c:427
wl_pointer_events
static const struct wl_message wl_pointer_events[]
Definition: wayland-protocol.c:396
wl_seat_interface
const struct wl_interface wl_seat_interface
Definition: wayland-protocol.c:385
wl_registry_interface
const struct wl_interface wl_registry_interface
Definition: wayland-protocol.c:174
wl_data_source_events
static const struct wl_message wl_data_source_events[]
Definition: wayland-protocol.c:267
wl_registry_events
static const struct wl_message wl_registry_events[]
Definition: wayland-protocol.c:169
wl_shell_surface_requests
static const struct wl_message wl_shell_surface_requests[]
Definition: wayland-protocol.c:324
wl_data_device_interface
const struct wl_interface wl_data_device_interface
Definition: wayland-protocol.c:297
wl_shell_surface_events
static const struct wl_message wl_shell_surface_events[]
Definition: wayland-protocol.c:337
wl_seat_requests
static const struct wl_message wl_seat_requests[]
Definition: wayland-protocol.c:373
wl_subcompositor_interface
WL_EXPORT const struct wl_interface wl_subcompositor_interface
Definition: wayland-protocol.c:487
wl_compositor_requests
static const struct wl_message wl_compositor_requests[]
Definition: wayland-protocol.c:190
wl_keyboard_requests
static const struct wl_message wl_keyboard_requests[]
Definition: wayland-protocol.c:414
wl_touch_requests
static const struct wl_message wl_touch_requests[]
Definition: wayland-protocol.c:433
wl_display_events
static const struct wl_message wl_display_events[]
Definition: wayland-protocol.c:154
wl_data_device_manager_interface
WL_EXPORT const struct wl_interface wl_data_device_manager_interface
Definition: wayland-protocol.c:308
wl_shm_events
static const struct wl_message wl_shm_events[]
Definition: wayland-protocol.c:217
wl_callback_events
static const struct wl_message wl_callback_events[]
Definition: wayland-protocol.c:180
wl_subsurface_requests
static const struct wl_message wl_subsurface_requests[]
Definition: wayland-protocol.c:493
wl_registry_requests
static const struct wl_message wl_registry_requests[]
Definition: wayland-protocol.c:165
wl_pointer_interface
const struct wl_interface wl_pointer_interface
Definition: wayland-protocol.c:408