fordon_greeman / moosicpalyer

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