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