AtlatestRepositorysigil-ui
1
/* Generated by wayland-scanner 1.24.0 */3
/*4
* Copyright © 2008-2011 Kristian Høgsberg5
* Copyright © 2010-2011 Intel Corporation6
* Copyright © 2012-2013 Collabora, Ltd.7
*8
* Permission is hereby granted, free of charge, to any person9
* obtaining a copy of this software and associated documentation files10
* (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 the17
* next paragraph) shall be included in all copies or substantial18
* 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 OF22
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND23
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS24
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN25
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN26
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE27
* SOFTWARE.28
*/30
#include <stdbool.h>31
#include <stdlib.h>32
#include <stdint.h>33
#include "wayland-util.h"35
#ifndef __has_attribute36
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */37
#endif39
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)40
#define WL_PRIVATE __attribute__ ((visibility("hidden")))41
#else42
#define WL_PRIVATE43
#endif45
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;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
&wl_registry_interface,159
};161
static const struct wl_message wl_display_requests[] = {162
{ "sync", "n", wayland_types + 8 },163
{ "get_registry", "n", wayland_types + 9 },164
};166
static const struct wl_message wl_display_events[] = {167
{ "error", "ous", wayland_types + 0 },168
{ "delete_id", "u", wayland_types + 0 },169
};171
WL_PRIVATE const struct wl_interface wl_display_interface = {172
"wl_display", 1,173
2, wl_display_requests,174
2, wl_display_events,175
};177
static const struct wl_message wl_registry_requests[] = {178
{ "bind", "usun", wayland_types + 0 },179
};181
static const struct wl_message wl_registry_events[] = {182
{ "global", "usu", wayland_types + 0 },183
{ "global_remove", "u", wayland_types + 0 },184
};186
WL_PRIVATE const struct wl_interface wl_registry_interface = {187
"wl_registry", 1,188
1, wl_registry_requests,189
2, wl_registry_events,190
};192
static const struct wl_message wl_callback_events[] = {193
{ "done", "u", wayland_types + 0 },194
};196
WL_PRIVATE const struct wl_interface wl_callback_interface = {197
"wl_callback", 1,198
0, NULL,199
1, wl_callback_events,200
};202
static const struct wl_message wl_compositor_requests[] = {203
{ "create_surface", "n", wayland_types + 10 },204
{ "create_region", "n", wayland_types + 11 },205
};207
WL_PRIVATE const struct wl_interface wl_compositor_interface = {208
"wl_compositor", 6,209
2, wl_compositor_requests,210
0, NULL,211
};213
static const struct wl_message wl_shm_pool_requests[] = {214
{ "create_buffer", "niiiiu", wayland_types + 12 },215
{ "destroy", "", wayland_types + 0 },216
{ "resize", "i", wayland_types + 0 },217
};219
WL_PRIVATE const struct wl_interface wl_shm_pool_interface = {220
"wl_shm_pool", 2,221
3, wl_shm_pool_requests,222
0, NULL,223
};225
static const struct wl_message wl_shm_requests[] = {226
{ "create_pool", "nhi", wayland_types + 18 },227
{ "release", "2", wayland_types + 0 },228
};230
static const struct wl_message wl_shm_events[] = {231
{ "format", "u", wayland_types + 0 },232
};234
WL_PRIVATE const struct wl_interface wl_shm_interface = {235
"wl_shm", 2,236
2, wl_shm_requests,237
1, wl_shm_events,238
};240
static const struct wl_message wl_buffer_requests[] = {241
{ "destroy", "", wayland_types + 0 },242
};244
static const struct wl_message wl_buffer_events[] = {245
{ "release", "", wayland_types + 0 },246
};248
WL_PRIVATE const struct wl_interface wl_buffer_interface = {249
"wl_buffer", 1,250
1, wl_buffer_requests,251
1, wl_buffer_events,252
};254
static const struct wl_message wl_data_offer_requests[] = {255
{ "accept", "u?s", wayland_types + 0 },256
{ "receive", "sh", wayland_types + 0 },257
{ "destroy", "", wayland_types + 0 },258
{ "finish", "3", wayland_types + 0 },259
{ "set_actions", "3uu", wayland_types + 0 },260
};262
static const struct wl_message wl_data_offer_events[] = {263
{ "offer", "s", wayland_types + 0 },264
{ "source_actions", "3u", wayland_types + 0 },265
{ "action", "3u", wayland_types + 0 },266
};268
WL_PRIVATE const struct wl_interface wl_data_offer_interface = {269
"wl_data_offer", 3,270
5, wl_data_offer_requests,271
3, wl_data_offer_events,272
};274
static const struct wl_message wl_data_source_requests[] = {275
{ "offer", "s", wayland_types + 0 },276
{ "destroy", "", wayland_types + 0 },277
{ "set_actions", "3u", wayland_types + 0 },278
};280
static const struct wl_message wl_data_source_events[] = {281
{ "target", "?s", wayland_types + 0 },282
{ "send", "sh", wayland_types + 0 },283
{ "cancelled", "", wayland_types + 0 },284
{ "dnd_drop_performed", "3", wayland_types + 0 },285
{ "dnd_finished", "3", wayland_types + 0 },286
{ "action", "3u", wayland_types + 0 },287
};289
WL_PRIVATE const struct wl_interface wl_data_source_interface = {290
"wl_data_source", 3,291
3, wl_data_source_requests,292
6, wl_data_source_events,293
};295
static const struct wl_message wl_data_device_requests[] = {296
{ "start_drag", "?oo?ou", wayland_types + 21 },297
{ "set_selection", "?ou", wayland_types + 25 },298
{ "release", "2", wayland_types + 0 },299
};301
static const struct wl_message wl_data_device_events[] = {302
{ "data_offer", "n", wayland_types + 27 },303
{ "enter", "uoff?o", wayland_types + 28 },304
{ "leave", "", wayland_types + 0 },305
{ "motion", "uff", wayland_types + 0 },306
{ "drop", "", wayland_types + 0 },307
{ "selection", "?o", wayland_types + 33 },308
};310
WL_PRIVATE const struct wl_interface wl_data_device_interface = {311
"wl_data_device", 3,312
3, wl_data_device_requests,313
6, wl_data_device_events,314
};316
static const struct wl_message wl_data_device_manager_requests[] = {317
{ "create_data_source", "n", wayland_types + 34 },318
{ "get_data_device", "no", wayland_types + 35 },319
};321
WL_PRIVATE const struct wl_interface wl_data_device_manager_interface = {322
"wl_data_device_manager", 3,323
2, wl_data_device_manager_requests,324
0, NULL,325
};327
static const struct wl_message wl_shell_requests[] = {328
{ "get_shell_surface", "no", wayland_types + 37 },329
};331
WL_PRIVATE const struct wl_interface wl_shell_interface = {332
"wl_shell", 1,333
1, wl_shell_requests,334
0, NULL,335
};337
static const struct wl_message wl_shell_surface_requests[] = {338
{ "pong", "u", wayland_types + 0 },339
{ "move", "ou", wayland_types + 39 },340
{ "resize", "ouu", wayland_types + 41 },341
{ "set_toplevel", "", wayland_types + 0 },342
{ "set_transient", "oiiu", wayland_types + 44 },343
{ "set_fullscreen", "uu?o", wayland_types + 48 },344
{ "set_popup", "ouoiiu", wayland_types + 51 },345
{ "set_maximized", "?o", wayland_types + 57 },346
{ "set_title", "s", wayland_types + 0 },347
{ "set_class", "s", wayland_types + 0 },348
};350
static const struct wl_message wl_shell_surface_events[] = {351
{ "ping", "u", wayland_types + 0 },352
{ "configure", "uii", wayland_types + 0 },353
{ "popup_done", "", wayland_types + 0 },354
};356
WL_PRIVATE const struct wl_interface wl_shell_surface_interface = {357
"wl_shell_surface", 1,358
10, wl_shell_surface_requests,359
3, wl_shell_surface_events,360
};362
static const struct wl_message wl_surface_requests[] = {363
{ "destroy", "", wayland_types + 0 },364
{ "attach", "?oii", wayland_types + 58 },365
{ "damage", "iiii", wayland_types + 0 },366
{ "frame", "n", wayland_types + 61 },367
{ "set_opaque_region", "?o", wayland_types + 62 },368
{ "set_input_region", "?o", wayland_types + 63 },369
{ "commit", "", wayland_types + 0 },370
{ "set_buffer_transform", "2i", wayland_types + 0 },371
{ "set_buffer_scale", "3i", wayland_types + 0 },372
{ "damage_buffer", "4iiii", wayland_types + 0 },373
{ "offset", "5ii", wayland_types + 0 },374
};376
static const struct wl_message wl_surface_events[] = {377
{ "enter", "o", wayland_types + 64 },378
{ "leave", "o", wayland_types + 65 },379
{ "preferred_buffer_scale", "6i", wayland_types + 0 },380
{ "preferred_buffer_transform", "6u", wayland_types + 0 },381
};383
WL_PRIVATE const struct wl_interface wl_surface_interface = {384
"wl_surface", 6,385
11, wl_surface_requests,386
4, wl_surface_events,387
};389
static const struct wl_message wl_seat_requests[] = {390
{ "get_pointer", "n", wayland_types + 66 },391
{ "get_keyboard", "n", wayland_types + 67 },392
{ "get_touch", "n", wayland_types + 68 },393
{ "release", "5", wayland_types + 0 },394
};396
static const struct wl_message wl_seat_events[] = {397
{ "capabilities", "u", wayland_types + 0 },398
{ "name", "2s", wayland_types + 0 },399
};401
WL_PRIVATE const struct wl_interface wl_seat_interface = {402
"wl_seat", 10,403
4, wl_seat_requests,404
2, wl_seat_events,405
};407
static const struct wl_message wl_pointer_requests[] = {408
{ "set_cursor", "u?oii", wayland_types + 69 },409
{ "release", "3", wayland_types + 0 },410
};412
static const struct wl_message wl_pointer_events[] = {413
{ "enter", "uoff", wayland_types + 73 },414
{ "leave", "uo", wayland_types + 77 },415
{ "motion", "uff", wayland_types + 0 },416
{ "button", "uuuu", wayland_types + 0 },417
{ "axis", "uuf", wayland_types + 0 },418
{ "frame", "5", wayland_types + 0 },419
{ "axis_source", "5u", wayland_types + 0 },420
{ "axis_stop", "5uu", wayland_types + 0 },421
{ "axis_discrete", "5ui", wayland_types + 0 },422
{ "axis_value120", "8ui", wayland_types + 0 },423
{ "axis_relative_direction", "9uu", wayland_types + 0 },424
};426
WL_PRIVATE const struct wl_interface wl_pointer_interface = {427
"wl_pointer", 10,428
2, wl_pointer_requests,429
11, wl_pointer_events,430
};432
static const struct wl_message wl_keyboard_requests[] = {433
{ "release", "3", wayland_types + 0 },434
};436
static const struct wl_message wl_keyboard_events[] = {437
{ "keymap", "uhu", wayland_types + 0 },438
{ "enter", "uoa", wayland_types + 79 },439
{ "leave", "uo", wayland_types + 82 },440
{ "key", "uuuu", wayland_types + 0 },441
{ "modifiers", "uuuuu", wayland_types + 0 },442
{ "repeat_info", "4ii", wayland_types + 0 },443
};445
WL_PRIVATE const struct wl_interface wl_keyboard_interface = {446
"wl_keyboard", 10,447
1, wl_keyboard_requests,448
6, wl_keyboard_events,449
};451
static const struct wl_message wl_touch_requests[] = {452
{ "release", "3", wayland_types + 0 },453
};455
static const struct wl_message wl_touch_events[] = {456
{ "down", "uuoiff", wayland_types + 84 },457
{ "up", "uui", wayland_types + 0 },458
{ "motion", "uiff", wayland_types + 0 },459
{ "frame", "", wayland_types + 0 },460
{ "cancel", "", wayland_types + 0 },461
{ "shape", "6iff", wayland_types + 0 },462
{ "orientation", "6if", wayland_types + 0 },463
};465
WL_PRIVATE const struct wl_interface wl_touch_interface = {466
"wl_touch", 10,467
1, wl_touch_requests,468
7, wl_touch_events,469
};471
static const struct wl_message wl_output_requests[] = {472
{ "release", "3", wayland_types + 0 },473
};475
static const struct wl_message wl_output_events[] = {476
{ "geometry", "iiiiissi", wayland_types + 0 },477
{ "mode", "uiii", wayland_types + 0 },478
{ "done", "2", wayland_types + 0 },479
{ "scale", "2i", wayland_types + 0 },480
{ "name", "4s", wayland_types + 0 },481
{ "description", "4s", wayland_types + 0 },482
};484
WL_PRIVATE const struct wl_interface wl_output_interface = {485
"wl_output", 4,486
1, wl_output_requests,487
6, wl_output_events,488
};490
static const struct wl_message wl_region_requests[] = {491
{ "destroy", "", wayland_types + 0 },492
{ "add", "iiii", wayland_types + 0 },493
{ "subtract", "iiii", wayland_types + 0 },494
};496
WL_PRIVATE const struct wl_interface wl_region_interface = {497
"wl_region", 1,498
3, wl_region_requests,499
0, NULL,500
};502
static const struct wl_message wl_subcompositor_requests[] = {503
{ "destroy", "", wayland_types + 0 },504
{ "get_subsurface", "noo", wayland_types + 90 },505
};507
WL_PRIVATE const struct wl_interface wl_subcompositor_interface = {508
"wl_subcompositor", 1,509
2, wl_subcompositor_requests,510
0, NULL,511
};513
static const struct wl_message wl_subsurface_requests[] = {514
{ "destroy", "", wayland_types + 0 },515
{ "set_position", "ii", wayland_types + 0 },516
{ "place_above", "o", wayland_types + 93 },517
{ "place_below", "o", wayland_types + 94 },518
{ "set_sync", "", wayland_types + 0 },519
{ "set_desync", "", wayland_types + 0 },520
};522
WL_PRIVATE const struct wl_interface wl_subsurface_interface = {523
"wl_subsurface", 1,524
6, wl_subsurface_requests,525
0, NULL,526
};528
static const struct wl_message wl_fixes_requests[] = {529
{ "destroy", "", wayland_types + 0 },530
{ "destroy_registry", "o", wayland_types + 95 },531
};533
WL_PRIVATE const struct wl_interface wl_fixes_interface = {534
"wl_fixes", 1,535
2, wl_fixes_requests,536
0, NULL,537
};