VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/wlInclude/wayland-protocol.c@ 106476

Last change on this file since 106476 was 101677, checked in by vboxsync, 13 months ago

Additions: Wayland: Add generated code and dynamic loader desc for libwayland-client, bugref:10194.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 13.8 KB
Line 
1/* Generated by wayland-scanner 1.20.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/* wayland-scanner --include-core-only --strict public-code ./wayland.xml wayland-protocol.c */
31
32#include <stdlib.h>
33#include <stdint.h>
34#include "wayland-util.h"
35
36extern const struct wl_interface wl_buffer_interface;
37extern const struct wl_interface wl_callback_interface;
38extern const struct wl_interface wl_data_device_interface;
39extern const struct wl_interface wl_data_offer_interface;
40extern const struct wl_interface wl_data_source_interface;
41extern const struct wl_interface wl_keyboard_interface;
42extern const struct wl_interface wl_output_interface;
43extern const struct wl_interface wl_pointer_interface;
44extern const struct wl_interface wl_region_interface;
45extern const struct wl_interface wl_registry_interface;
46extern const struct wl_interface wl_seat_interface;
47extern const struct wl_interface wl_shell_surface_interface;
48extern const struct wl_interface wl_shm_pool_interface;
49extern const struct wl_interface wl_subsurface_interface;
50extern const struct wl_interface wl_surface_interface;
51extern const struct wl_interface wl_touch_interface;
52
53static const struct wl_interface *wayland_types[] = {
54 NULL,
55 NULL,
56 NULL,
57 NULL,
58 NULL,
59 NULL,
60 NULL,
61 NULL,
62 &wl_callback_interface,
63 &wl_registry_interface,
64 &wl_surface_interface,
65 &wl_region_interface,
66 &wl_buffer_interface,
67 NULL,
68 NULL,
69 NULL,
70 NULL,
71 NULL,
72 &wl_shm_pool_interface,
73 NULL,
74 NULL,
75 &wl_data_source_interface,
76 &wl_surface_interface,
77 &wl_surface_interface,
78 NULL,
79 &wl_data_source_interface,
80 NULL,
81 &wl_data_offer_interface,
82 NULL,
83 &wl_surface_interface,
84 NULL,
85 NULL,
86 &wl_data_offer_interface,
87 &wl_data_offer_interface,
88 &wl_data_source_interface,
89 &wl_data_device_interface,
90 &wl_seat_interface,
91 &wl_shell_surface_interface,
92 &wl_surface_interface,
93 &wl_seat_interface,
94 NULL,
95 &wl_seat_interface,
96 NULL,
97 NULL,
98 &wl_surface_interface,
99 NULL,
100 NULL,
101 NULL,
102 NULL,
103 NULL,
104 &wl_output_interface,
105 &wl_seat_interface,
106 NULL,
107 &wl_surface_interface,
108 NULL,
109 NULL,
110 NULL,
111 &wl_output_interface,
112 &wl_buffer_interface,
113 NULL,
114 NULL,
115 &wl_callback_interface,
116 &wl_region_interface,
117 &wl_region_interface,
118 &wl_output_interface,
119 &wl_output_interface,
120 &wl_pointer_interface,
121 &wl_keyboard_interface,
122 &wl_touch_interface,
123 NULL,
124 &wl_surface_interface,
125 NULL,
126 NULL,
127 NULL,
128 &wl_surface_interface,
129 NULL,
130 NULL,
131 NULL,
132 &wl_surface_interface,
133 NULL,
134 &wl_surface_interface,
135 NULL,
136 NULL,
137 &wl_surface_interface,
138 NULL,
139 NULL,
140 &wl_surface_interface,
141 NULL,
142 NULL,
143 NULL,
144 &wl_subsurface_interface,
145 &wl_surface_interface,
146 &wl_surface_interface,
147 &wl_surface_interface,
148 &wl_surface_interface,
149};
150
151static const struct wl_message wl_display_requests[] = {
152 { "sync", "n", wayland_types + 8 },
153 { "get_registry", "n", wayland_types + 9 },
154};
155
156static const struct wl_message wl_display_events[] = {
157 { "error", "ous", wayland_types + 0 },
158 { "delete_id", "u", wayland_types + 0 },
159};
160
161WL_EXPORT const struct wl_interface wl_display_interface = {
162 "wl_display", 1,
163 2, wl_display_requests,
164 2, wl_display_events,
165};
166
167static const struct wl_message wl_registry_requests[] = {
168 { "bind", "usun", wayland_types + 0 },
169};
170
171static const struct wl_message wl_registry_events[] = {
172 { "global", "usu", wayland_types + 0 },
173 { "global_remove", "u", wayland_types + 0 },
174};
175
176WL_EXPORT const struct wl_interface wl_registry_interface = {
177 "wl_registry", 1,
178 1, wl_registry_requests,
179 2, wl_registry_events,
180};
181
182static const struct wl_message wl_callback_events[] = {
183 { "done", "u", wayland_types + 0 },
184};
185
186WL_EXPORT const struct wl_interface wl_callback_interface = {
187 "wl_callback", 1,
188 0, NULL,
189 1, wl_callback_events,
190};
191
192static const struct wl_message wl_compositor_requests[] = {
193 { "create_surface", "n", wayland_types + 10 },
194 { "create_region", "n", wayland_types + 11 },
195};
196
197WL_EXPORT const struct wl_interface wl_compositor_interface = {
198 "wl_compositor", 5,
199 2, wl_compositor_requests,
200 0, NULL,
201};
202
203static const struct wl_message wl_shm_pool_requests[] = {
204 { "create_buffer", "niiiiu", wayland_types + 12 },
205 { "destroy", "", wayland_types + 0 },
206 { "resize", "i", wayland_types + 0 },
207};
208
209WL_EXPORT const struct wl_interface wl_shm_pool_interface = {
210 "wl_shm_pool", 1,
211 3, wl_shm_pool_requests,
212 0, NULL,
213};
214
215static const struct wl_message wl_shm_requests[] = {
216 { "create_pool", "nhi", wayland_types + 18 },
217};
218
219static const struct wl_message wl_shm_events[] = {
220 { "format", "u", wayland_types + 0 },
221};
222
223WL_EXPORT const struct wl_interface wl_shm_interface = {
224 "wl_shm", 1,
225 1, wl_shm_requests,
226 1, wl_shm_events,
227};
228
229static const struct wl_message wl_buffer_requests[] = {
230 { "destroy", "", wayland_types + 0 },
231};
232
233static const struct wl_message wl_buffer_events[] = {
234 { "release", "", wayland_types + 0 },
235};
236
237WL_EXPORT const struct wl_interface wl_buffer_interface = {
238 "wl_buffer", 1,
239 1, wl_buffer_requests,
240 1, wl_buffer_events,
241};
242
243static const struct wl_message wl_data_offer_requests[] = {
244 { "accept", "u?s", wayland_types + 0 },
245 { "receive", "sh", wayland_types + 0 },
246 { "destroy", "", wayland_types + 0 },
247 { "finish", "3", wayland_types + 0 },
248 { "set_actions", "3uu", wayland_types + 0 },
249};
250
251static const struct wl_message wl_data_offer_events[] = {
252 { "offer", "s", wayland_types + 0 },
253 { "source_actions", "3u", wayland_types + 0 },
254 { "action", "3u", wayland_types + 0 },
255};
256
257WL_EXPORT const struct wl_interface wl_data_offer_interface = {
258 "wl_data_offer", 3,
259 5, wl_data_offer_requests,
260 3, wl_data_offer_events,
261};
262
263static const struct wl_message wl_data_source_requests[] = {
264 { "offer", "s", wayland_types + 0 },
265 { "destroy", "", wayland_types + 0 },
266 { "set_actions", "3u", wayland_types + 0 },
267};
268
269static const struct wl_message wl_data_source_events[] = {
270 { "target", "?s", wayland_types + 0 },
271 { "send", "sh", wayland_types + 0 },
272 { "cancelled", "", wayland_types + 0 },
273 { "dnd_drop_performed", "3", wayland_types + 0 },
274 { "dnd_finished", "3", wayland_types + 0 },
275 { "action", "3u", wayland_types + 0 },
276};
277
278WL_EXPORT const struct wl_interface wl_data_source_interface = {
279 "wl_data_source", 3,
280 3, wl_data_source_requests,
281 6, wl_data_source_events,
282};
283
284static const struct wl_message wl_data_device_requests[] = {
285 { "start_drag", "?oo?ou", wayland_types + 21 },
286 { "set_selection", "?ou", wayland_types + 25 },
287 { "release", "2", wayland_types + 0 },
288};
289
290static const struct wl_message wl_data_device_events[] = {
291 { "data_offer", "n", wayland_types + 27 },
292 { "enter", "uoff?o", wayland_types + 28 },
293 { "leave", "", wayland_types + 0 },
294 { "motion", "uff", wayland_types + 0 },
295 { "drop", "", wayland_types + 0 },
296 { "selection", "?o", wayland_types + 33 },
297};
298
299WL_EXPORT const struct wl_interface wl_data_device_interface = {
300 "wl_data_device", 3,
301 3, wl_data_device_requests,
302 6, wl_data_device_events,
303};
304
305static const struct wl_message wl_data_device_manager_requests[] = {
306 { "create_data_source", "n", wayland_types + 34 },
307 { "get_data_device", "no", wayland_types + 35 },
308};
309
310WL_EXPORT const struct wl_interface wl_data_device_manager_interface = {
311 "wl_data_device_manager", 3,
312 2, wl_data_device_manager_requests,
313 0, NULL,
314};
315
316static const struct wl_message wl_shell_requests[] = {
317 { "get_shell_surface", "no", wayland_types + 37 },
318};
319
320WL_EXPORT const struct wl_interface wl_shell_interface = {
321 "wl_shell", 1,
322 1, wl_shell_requests,
323 0, NULL,
324};
325
326static const struct wl_message wl_shell_surface_requests[] = {
327 { "pong", "u", wayland_types + 0 },
328 { "move", "ou", wayland_types + 39 },
329 { "resize", "ouu", wayland_types + 41 },
330 { "set_toplevel", "", wayland_types + 0 },
331 { "set_transient", "oiiu", wayland_types + 44 },
332 { "set_fullscreen", "uu?o", wayland_types + 48 },
333 { "set_popup", "ouoiiu", wayland_types + 51 },
334 { "set_maximized", "?o", wayland_types + 57 },
335 { "set_title", "s", wayland_types + 0 },
336 { "set_class", "s", wayland_types + 0 },
337};
338
339static const struct wl_message wl_shell_surface_events[] = {
340 { "ping", "u", wayland_types + 0 },
341 { "configure", "uii", wayland_types + 0 },
342 { "popup_done", "", wayland_types + 0 },
343};
344
345WL_EXPORT const struct wl_interface wl_shell_surface_interface = {
346 "wl_shell_surface", 1,
347 10, wl_shell_surface_requests,
348 3, wl_shell_surface_events,
349};
350
351static const struct wl_message wl_surface_requests[] = {
352 { "destroy", "", wayland_types + 0 },
353 { "attach", "?oii", wayland_types + 58 },
354 { "damage", "iiii", wayland_types + 0 },
355 { "frame", "n", wayland_types + 61 },
356 { "set_opaque_region", "?o", wayland_types + 62 },
357 { "set_input_region", "?o", wayland_types + 63 },
358 { "commit", "", wayland_types + 0 },
359 { "set_buffer_transform", "2i", wayland_types + 0 },
360 { "set_buffer_scale", "3i", wayland_types + 0 },
361 { "damage_buffer", "4iiii", wayland_types + 0 },
362 { "offset", "5ii", wayland_types + 0 },
363};
364
365static const struct wl_message wl_surface_events[] = {
366 { "enter", "o", wayland_types + 64 },
367 { "leave", "o", wayland_types + 65 },
368};
369
370WL_EXPORT const struct wl_interface wl_surface_interface = {
371 "wl_surface", 5,
372 11, wl_surface_requests,
373 2, wl_surface_events,
374};
375
376static const struct wl_message wl_seat_requests[] = {
377 { "get_pointer", "n", wayland_types + 66 },
378 { "get_keyboard", "n", wayland_types + 67 },
379 { "get_touch", "n", wayland_types + 68 },
380 { "release", "5", wayland_types + 0 },
381};
382
383static const struct wl_message wl_seat_events[] = {
384 { "capabilities", "u", wayland_types + 0 },
385 { "name", "2s", wayland_types + 0 },
386};
387
388WL_EXPORT const struct wl_interface wl_seat_interface = {
389 "wl_seat", 7,
390 4, wl_seat_requests,
391 2, wl_seat_events,
392};
393
394static const struct wl_message wl_pointer_requests[] = {
395 { "set_cursor", "u?oii", wayland_types + 69 },
396 { "release", "3", wayland_types + 0 },
397};
398
399static const struct wl_message wl_pointer_events[] = {
400 { "enter", "uoff", wayland_types + 73 },
401 { "leave", "uo", wayland_types + 77 },
402 { "motion", "uff", wayland_types + 0 },
403 { "button", "uuuu", wayland_types + 0 },
404 { "axis", "uuf", wayland_types + 0 },
405 { "frame", "5", wayland_types + 0 },
406 { "axis_source", "5u", wayland_types + 0 },
407 { "axis_stop", "5uu", wayland_types + 0 },
408 { "axis_discrete", "5ui", wayland_types + 0 },
409};
410
411WL_EXPORT const struct wl_interface wl_pointer_interface = {
412 "wl_pointer", 7,
413 2, wl_pointer_requests,
414 9, wl_pointer_events,
415};
416
417static const struct wl_message wl_keyboard_requests[] = {
418 { "release", "3", wayland_types + 0 },
419};
420
421static const struct wl_message wl_keyboard_events[] = {
422 { "keymap", "uhu", wayland_types + 0 },
423 { "enter", "uoa", wayland_types + 79 },
424 { "leave", "uo", wayland_types + 82 },
425 { "key", "uuuu", wayland_types + 0 },
426 { "modifiers", "uuuuu", wayland_types + 0 },
427 { "repeat_info", "4ii", wayland_types + 0 },
428};
429
430WL_EXPORT const struct wl_interface wl_keyboard_interface = {
431 "wl_keyboard", 7,
432 1, wl_keyboard_requests,
433 6, wl_keyboard_events,
434};
435
436static const struct wl_message wl_touch_requests[] = {
437 { "release", "3", wayland_types + 0 },
438};
439
440static const struct wl_message wl_touch_events[] = {
441 { "down", "uuoiff", wayland_types + 84 },
442 { "up", "uui", wayland_types + 0 },
443 { "motion", "uiff", wayland_types + 0 },
444 { "frame", "", wayland_types + 0 },
445 { "cancel", "", wayland_types + 0 },
446 { "shape", "6iff", wayland_types + 0 },
447 { "orientation", "6if", wayland_types + 0 },
448};
449
450WL_EXPORT const struct wl_interface wl_touch_interface = {
451 "wl_touch", 7,
452 1, wl_touch_requests,
453 7, wl_touch_events,
454};
455
456static const struct wl_message wl_output_requests[] = {
457 { "release", "3", wayland_types + 0 },
458};
459
460static const struct wl_message wl_output_events[] = {
461 { "geometry", "iiiiissi", wayland_types + 0 },
462 { "mode", "uiii", wayland_types + 0 },
463 { "done", "2", wayland_types + 0 },
464 { "scale", "2i", wayland_types + 0 },
465 { "name", "4s", wayland_types + 0 },
466 { "description", "4s", wayland_types + 0 },
467};
468
469WL_EXPORT const struct wl_interface wl_output_interface = {
470 "wl_output", 4,
471 1, wl_output_requests,
472 6, wl_output_events,
473};
474
475static const struct wl_message wl_region_requests[] = {
476 { "destroy", "", wayland_types + 0 },
477 { "add", "iiii", wayland_types + 0 },
478 { "subtract", "iiii", wayland_types + 0 },
479};
480
481WL_EXPORT const struct wl_interface wl_region_interface = {
482 "wl_region", 1,
483 3, wl_region_requests,
484 0, NULL,
485};
486
487static const struct wl_message wl_subcompositor_requests[] = {
488 { "destroy", "", wayland_types + 0 },
489 { "get_subsurface", "noo", wayland_types + 90 },
490};
491
492WL_EXPORT const struct wl_interface wl_subcompositor_interface = {
493 "wl_subcompositor", 1,
494 2, wl_subcompositor_requests,
495 0, NULL,
496};
497
498static const struct wl_message wl_subsurface_requests[] = {
499 { "destroy", "", wayland_types + 0 },
500 { "set_position", "ii", wayland_types + 0 },
501 { "place_above", "o", wayland_types + 93 },
502 { "place_below", "o", wayland_types + 94 },
503 { "set_sync", "", wayland_types + 0 },
504 { "set_desync", "", wayland_types + 0 },
505};
506
507WL_EXPORT const struct wl_interface wl_subsurface_interface = {
508 "wl_subsurface", 1,
509 6, wl_subsurface_requests,
510 0, NULL,
511};
512
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette