1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
//
// This file was auto-generated, do not edit directly
//

/*
Copyright © 2008-2011 Kristian Høgsberg
    Copyright © 2010-2011 Intel Corporation
    Copyright © 2012-2013 Collabora, Ltd.

    Permission is hereby granted, free of charge, to any person
    obtaining a copy of this software and associated documentation files
    (the "Software"), to deal in the Software without restriction,
    including without limitation the rights to use, copy, modify, merge,
    publish, distribute, sublicense, and/or sell copies of the Software,
    and to permit persons to whom the Software is furnished to do so,
    subject to the following conditions:

    The above copyright notice and this permission notice (including the
    next paragraph) shall be included in all copies or substantial
    portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
    BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
    ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
*/

use std::os::raw::{c_char, c_void};

use wayland_sys::common::*;

const NULLPTR: *const c_void = 0 as *const c_void;

static mut types_null: [*const wl_interface; 8] = [
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
];

// wl_display

static mut wl_display_requests_sync_types: [*const wl_interface; 1] = [
    unsafe { &wl_callback_interface as *const wl_interface },
];
static mut wl_display_requests_get_registry_types: [*const wl_interface; 1] = [
    unsafe { &wl_registry_interface as *const wl_interface },
];
pub static mut wl_display_requests: [wl_message; 2] = [
    wl_message { name: b"sync\0" as *const u8 as *const c_char, signature: b"n\0" as *const u8 as *const c_char, types: unsafe { &wl_display_requests_sync_types as *const _ } },
    wl_message { name: b"get_registry\0" as *const u8 as *const c_char, signature: b"n\0" as *const u8 as *const c_char, types: unsafe { &wl_display_requests_get_registry_types as *const _ } },
];
pub static mut wl_display_events: [wl_message; 2] = [
    wl_message { name: b"error\0" as *const u8 as *const c_char, signature: b"ous\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"delete_id\0" as *const u8 as *const c_char, signature: b"u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_display_interface: wl_interface = wl_interface {
    name: b"wl_display\0" as *const u8 as *const c_char,
    version: 1,
    request_count: 2,
    requests: unsafe { &wl_display_requests as *const _ },
    event_count: 2,
    events: unsafe { &wl_display_events as *const _ },
};

// wl_registry

pub static mut wl_registry_requests: [wl_message; 1] = [
    wl_message { name: b"bind\0" as *const u8 as *const c_char, signature: b"usun\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
pub static mut wl_registry_events: [wl_message; 2] = [
    wl_message { name: b"global\0" as *const u8 as *const c_char, signature: b"usu\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"global_remove\0" as *const u8 as *const c_char, signature: b"u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_registry_interface: wl_interface = wl_interface {
    name: b"wl_registry\0" as *const u8 as *const c_char,
    version: 1,
    request_count: 1,
    requests: unsafe { &wl_registry_requests as *const _ },
    event_count: 2,
    events: unsafe { &wl_registry_events as *const _ },
};

// wl_callback

pub static mut wl_callback_events: [wl_message; 1] = [
    wl_message { name: b"done\0" as *const u8 as *const c_char, signature: b"u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_callback_interface: wl_interface = wl_interface {
    name: b"wl_callback\0" as *const u8 as *const c_char,
    version: 1,
    request_count: 0,
    requests: NULLPTR as *const wl_message,
    event_count: 1,
    events: unsafe { &wl_callback_events as *const _ },
};

// wl_compositor

static mut wl_compositor_requests_create_surface_types: [*const wl_interface; 1] = [
    unsafe { &wl_surface_interface as *const wl_interface },
];
static mut wl_compositor_requests_create_region_types: [*const wl_interface; 1] = [
    unsafe { &wl_region_interface as *const wl_interface },
];
pub static mut wl_compositor_requests: [wl_message; 2] = [
    wl_message { name: b"create_surface\0" as *const u8 as *const c_char, signature: b"n\0" as *const u8 as *const c_char, types: unsafe { &wl_compositor_requests_create_surface_types as *const _ } },
    wl_message { name: b"create_region\0" as *const u8 as *const c_char, signature: b"n\0" as *const u8 as *const c_char, types: unsafe { &wl_compositor_requests_create_region_types as *const _ } },
];

pub static mut wl_compositor_interface: wl_interface = wl_interface {
    name: b"wl_compositor\0" as *const u8 as *const c_char,
    version: 4,
    request_count: 2,
    requests: unsafe { &wl_compositor_requests as *const _ },
    event_count: 0,
    events: NULLPTR as *const wl_message,
};

// wl_shm_pool

static mut wl_shm_pool_requests_create_buffer_types: [*const wl_interface; 6] = [
    unsafe { &wl_buffer_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
];
pub static mut wl_shm_pool_requests: [wl_message; 3] = [
    wl_message { name: b"create_buffer\0" as *const u8 as *const c_char, signature: b"niiiiu\0" as *const u8 as *const c_char, types: unsafe { &wl_shm_pool_requests_create_buffer_types as *const _ } },
    wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"resize\0" as *const u8 as *const c_char, signature: b"i\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_shm_pool_interface: wl_interface = wl_interface {
    name: b"wl_shm_pool\0" as *const u8 as *const c_char,
    version: 1,
    request_count: 3,
    requests: unsafe { &wl_shm_pool_requests as *const _ },
    event_count: 0,
    events: NULLPTR as *const wl_message,
};

// wl_shm

static mut wl_shm_requests_create_pool_types: [*const wl_interface; 3] = [
    unsafe { &wl_shm_pool_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
];
pub static mut wl_shm_requests: [wl_message; 1] = [
    wl_message { name: b"create_pool\0" as *const u8 as *const c_char, signature: b"nhi\0" as *const u8 as *const c_char, types: unsafe { &wl_shm_requests_create_pool_types as *const _ } },
];
pub static mut wl_shm_events: [wl_message; 1] = [
    wl_message { name: b"format\0" as *const u8 as *const c_char, signature: b"u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_shm_interface: wl_interface = wl_interface {
    name: b"wl_shm\0" as *const u8 as *const c_char,
    version: 1,
    request_count: 1,
    requests: unsafe { &wl_shm_requests as *const _ },
    event_count: 1,
    events: unsafe { &wl_shm_events as *const _ },
};

// wl_buffer

pub static mut wl_buffer_requests: [wl_message; 1] = [
    wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
pub static mut wl_buffer_events: [wl_message; 1] = [
    wl_message { name: b"release\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_buffer_interface: wl_interface = wl_interface {
    name: b"wl_buffer\0" as *const u8 as *const c_char,
    version: 1,
    request_count: 1,
    requests: unsafe { &wl_buffer_requests as *const _ },
    event_count: 1,
    events: unsafe { &wl_buffer_events as *const _ },
};

// wl_data_offer

pub static mut wl_data_offer_requests: [wl_message; 5] = [
    wl_message { name: b"accept\0" as *const u8 as *const c_char, signature: b"u?s\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"receive\0" as *const u8 as *const c_char, signature: b"sh\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"finish\0" as *const u8 as *const c_char, signature: b"3\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"set_actions\0" as *const u8 as *const c_char, signature: b"3uu\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
pub static mut wl_data_offer_events: [wl_message; 3] = [
    wl_message { name: b"offer\0" as *const u8 as *const c_char, signature: b"s\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"source_actions\0" as *const u8 as *const c_char, signature: b"3u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"action\0" as *const u8 as *const c_char, signature: b"3u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_data_offer_interface: wl_interface = wl_interface {
    name: b"wl_data_offer\0" as *const u8 as *const c_char,
    version: 3,
    request_count: 5,
    requests: unsafe { &wl_data_offer_requests as *const _ },
    event_count: 3,
    events: unsafe { &wl_data_offer_events as *const _ },
};

// wl_data_source

pub static mut wl_data_source_requests: [wl_message; 3] = [
    wl_message { name: b"offer\0" as *const u8 as *const c_char, signature: b"s\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"set_actions\0" as *const u8 as *const c_char, signature: b"3u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
pub static mut wl_data_source_events: [wl_message; 6] = [
    wl_message { name: b"target\0" as *const u8 as *const c_char, signature: b"?s\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"send\0" as *const u8 as *const c_char, signature: b"sh\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"cancelled\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"dnd_drop_performed\0" as *const u8 as *const c_char, signature: b"3\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"dnd_finished\0" as *const u8 as *const c_char, signature: b"3\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"action\0" as *const u8 as *const c_char, signature: b"3u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_data_source_interface: wl_interface = wl_interface {
    name: b"wl_data_source\0" as *const u8 as *const c_char,
    version: 3,
    request_count: 3,
    requests: unsafe { &wl_data_source_requests as *const _ },
    event_count: 6,
    events: unsafe { &wl_data_source_events as *const _ },
};

// wl_data_device

static mut wl_data_device_requests_start_drag_types: [*const wl_interface; 4] = [
    unsafe { &wl_data_source_interface as *const wl_interface },
    unsafe { &wl_surface_interface as *const wl_interface },
    unsafe { &wl_surface_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
];
static mut wl_data_device_requests_set_selection_types: [*const wl_interface; 2] = [
    unsafe { &wl_data_source_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
];
pub static mut wl_data_device_requests: [wl_message; 3] = [
    wl_message { name: b"start_drag\0" as *const u8 as *const c_char, signature: b"?oo?ou\0" as *const u8 as *const c_char, types: unsafe { &wl_data_device_requests_start_drag_types as *const _ } },
    wl_message { name: b"set_selection\0" as *const u8 as *const c_char, signature: b"?ou\0" as *const u8 as *const c_char, types: unsafe { &wl_data_device_requests_set_selection_types as *const _ } },
    wl_message { name: b"release\0" as *const u8 as *const c_char, signature: b"2\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
static mut wl_data_device_events_data_offer_types: [*const wl_interface; 1] = [
    unsafe { &wl_data_offer_interface as *const wl_interface },
];
static mut wl_data_device_events_enter_types: [*const wl_interface; 5] = [
    NULLPTR as *const wl_interface,
    unsafe { &wl_surface_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    unsafe { &wl_data_offer_interface as *const wl_interface },
];
static mut wl_data_device_events_selection_types: [*const wl_interface; 1] = [
    unsafe { &wl_data_offer_interface as *const wl_interface },
];
pub static mut wl_data_device_events: [wl_message; 6] = [
    wl_message { name: b"data_offer\0" as *const u8 as *const c_char, signature: b"n\0" as *const u8 as *const c_char, types: unsafe { &wl_data_device_events_data_offer_types as *const _ } },
    wl_message { name: b"enter\0" as *const u8 as *const c_char, signature: b"uoff?o\0" as *const u8 as *const c_char, types: unsafe { &wl_data_device_events_enter_types as *const _ } },
    wl_message { name: b"leave\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"motion\0" as *const u8 as *const c_char, signature: b"uff\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"drop\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"selection\0" as *const u8 as *const c_char, signature: b"?o\0" as *const u8 as *const c_char, types: unsafe { &wl_data_device_events_selection_types as *const _ } },
];

pub static mut wl_data_device_interface: wl_interface = wl_interface {
    name: b"wl_data_device\0" as *const u8 as *const c_char,
    version: 3,
    request_count: 3,
    requests: unsafe { &wl_data_device_requests as *const _ },
    event_count: 6,
    events: unsafe { &wl_data_device_events as *const _ },
};

// wl_data_device_manager

static mut wl_data_device_manager_requests_create_data_source_types: [*const wl_interface; 1] = [
    unsafe { &wl_data_source_interface as *const wl_interface },
];
static mut wl_data_device_manager_requests_get_data_device_types: [*const wl_interface; 2] = [
    unsafe { &wl_data_device_interface as *const wl_interface },
    unsafe { &wl_seat_interface as *const wl_interface },
];
pub static mut wl_data_device_manager_requests: [wl_message; 2] = [
    wl_message { name: b"create_data_source\0" as *const u8 as *const c_char, signature: b"n\0" as *const u8 as *const c_char, types: unsafe { &wl_data_device_manager_requests_create_data_source_types as *const _ } },
    wl_message { name: b"get_data_device\0" as *const u8 as *const c_char, signature: b"no\0" as *const u8 as *const c_char, types: unsafe { &wl_data_device_manager_requests_get_data_device_types as *const _ } },
];

pub static mut wl_data_device_manager_interface: wl_interface = wl_interface {
    name: b"wl_data_device_manager\0" as *const u8 as *const c_char,
    version: 3,
    request_count: 2,
    requests: unsafe { &wl_data_device_manager_requests as *const _ },
    event_count: 0,
    events: NULLPTR as *const wl_message,
};

// wl_shell

static mut wl_shell_requests_get_shell_surface_types: [*const wl_interface; 2] = [
    unsafe { &wl_shell_surface_interface as *const wl_interface },
    unsafe { &wl_surface_interface as *const wl_interface },
];
pub static mut wl_shell_requests: [wl_message; 1] = [
    wl_message { name: b"get_shell_surface\0" as *const u8 as *const c_char, signature: b"no\0" as *const u8 as *const c_char, types: unsafe { &wl_shell_requests_get_shell_surface_types as *const _ } },
];

pub static mut wl_shell_interface: wl_interface = wl_interface {
    name: b"wl_shell\0" as *const u8 as *const c_char,
    version: 1,
    request_count: 1,
    requests: unsafe { &wl_shell_requests as *const _ },
    event_count: 0,
    events: NULLPTR as *const wl_message,
};

// wl_shell_surface

static mut wl_shell_surface_requests_move_types: [*const wl_interface; 2] = [
    unsafe { &wl_seat_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
];
static mut wl_shell_surface_requests_resize_types: [*const wl_interface; 3] = [
    unsafe { &wl_seat_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
];
static mut wl_shell_surface_requests_set_transient_types: [*const wl_interface; 4] = [
    unsafe { &wl_surface_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
];
static mut wl_shell_surface_requests_set_fullscreen_types: [*const wl_interface; 3] = [
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    unsafe { &wl_output_interface as *const wl_interface },
];
static mut wl_shell_surface_requests_set_popup_types: [*const wl_interface; 6] = [
    unsafe { &wl_seat_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
    unsafe { &wl_surface_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
];
static mut wl_shell_surface_requests_set_maximized_types: [*const wl_interface; 1] = [
    unsafe { &wl_output_interface as *const wl_interface },
];
pub static mut wl_shell_surface_requests: [wl_message; 10] = [
    wl_message { name: b"pong\0" as *const u8 as *const c_char, signature: b"u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"move\0" as *const u8 as *const c_char, signature: b"ou\0" as *const u8 as *const c_char, types: unsafe { &wl_shell_surface_requests_move_types as *const _ } },
    wl_message { name: b"resize\0" as *const u8 as *const c_char, signature: b"ouu\0" as *const u8 as *const c_char, types: unsafe { &wl_shell_surface_requests_resize_types as *const _ } },
    wl_message { name: b"set_toplevel\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"set_transient\0" as *const u8 as *const c_char, signature: b"oiiu\0" as *const u8 as *const c_char, types: unsafe { &wl_shell_surface_requests_set_transient_types as *const _ } },
    wl_message { name: b"set_fullscreen\0" as *const u8 as *const c_char, signature: b"uu?o\0" as *const u8 as *const c_char, types: unsafe { &wl_shell_surface_requests_set_fullscreen_types as *const _ } },
    wl_message { name: b"set_popup\0" as *const u8 as *const c_char, signature: b"ouoiiu\0" as *const u8 as *const c_char, types: unsafe { &wl_shell_surface_requests_set_popup_types as *const _ } },
    wl_message { name: b"set_maximized\0" as *const u8 as *const c_char, signature: b"?o\0" as *const u8 as *const c_char, types: unsafe { &wl_shell_surface_requests_set_maximized_types as *const _ } },
    wl_message { name: b"set_title\0" as *const u8 as *const c_char, signature: b"s\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"set_class\0" as *const u8 as *const c_char, signature: b"s\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
pub static mut wl_shell_surface_events: [wl_message; 3] = [
    wl_message { name: b"ping\0" as *const u8 as *const c_char, signature: b"u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"configure\0" as *const u8 as *const c_char, signature: b"uii\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"popup_done\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_shell_surface_interface: wl_interface = wl_interface {
    name: b"wl_shell_surface\0" as *const u8 as *const c_char,
    version: 1,
    request_count: 10,
    requests: unsafe { &wl_shell_surface_requests as *const _ },
    event_count: 3,
    events: unsafe { &wl_shell_surface_events as *const _ },
};

// wl_surface

static mut wl_surface_requests_attach_types: [*const wl_interface; 3] = [
    unsafe { &wl_buffer_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
];
static mut wl_surface_requests_frame_types: [*const wl_interface; 1] = [
    unsafe { &wl_callback_interface as *const wl_interface },
];
static mut wl_surface_requests_set_opaque_region_types: [*const wl_interface; 1] = [
    unsafe { &wl_region_interface as *const wl_interface },
];
static mut wl_surface_requests_set_input_region_types: [*const wl_interface; 1] = [
    unsafe { &wl_region_interface as *const wl_interface },
];
pub static mut wl_surface_requests: [wl_message; 10] = [
    wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"attach\0" as *const u8 as *const c_char, signature: b"?oii\0" as *const u8 as *const c_char, types: unsafe { &wl_surface_requests_attach_types as *const _ } },
    wl_message { name: b"damage\0" as *const u8 as *const c_char, signature: b"iiii\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"frame\0" as *const u8 as *const c_char, signature: b"n\0" as *const u8 as *const c_char, types: unsafe { &wl_surface_requests_frame_types as *const _ } },
    wl_message { name: b"set_opaque_region\0" as *const u8 as *const c_char, signature: b"?o\0" as *const u8 as *const c_char, types: unsafe { &wl_surface_requests_set_opaque_region_types as *const _ } },
    wl_message { name: b"set_input_region\0" as *const u8 as *const c_char, signature: b"?o\0" as *const u8 as *const c_char, types: unsafe { &wl_surface_requests_set_input_region_types as *const _ } },
    wl_message { name: b"commit\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"set_buffer_transform\0" as *const u8 as *const c_char, signature: b"2i\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"set_buffer_scale\0" as *const u8 as *const c_char, signature: b"3i\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"damage_buffer\0" as *const u8 as *const c_char, signature: b"4iiii\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
static mut wl_surface_events_enter_types: [*const wl_interface; 1] = [
    unsafe { &wl_output_interface as *const wl_interface },
];
static mut wl_surface_events_leave_types: [*const wl_interface; 1] = [
    unsafe { &wl_output_interface as *const wl_interface },
];
pub static mut wl_surface_events: [wl_message; 2] = [
    wl_message { name: b"enter\0" as *const u8 as *const c_char, signature: b"o\0" as *const u8 as *const c_char, types: unsafe { &wl_surface_events_enter_types as *const _ } },
    wl_message { name: b"leave\0" as *const u8 as *const c_char, signature: b"o\0" as *const u8 as *const c_char, types: unsafe { &wl_surface_events_leave_types as *const _ } },
];

pub static mut wl_surface_interface: wl_interface = wl_interface {
    name: b"wl_surface\0" as *const u8 as *const c_char,
    version: 4,
    request_count: 10,
    requests: unsafe { &wl_surface_requests as *const _ },
    event_count: 2,
    events: unsafe { &wl_surface_events as *const _ },
};

// wl_seat

static mut wl_seat_requests_get_pointer_types: [*const wl_interface; 1] = [
    unsafe { &wl_pointer_interface as *const wl_interface },
];
static mut wl_seat_requests_get_keyboard_types: [*const wl_interface; 1] = [
    unsafe { &wl_keyboard_interface as *const wl_interface },
];
static mut wl_seat_requests_get_touch_types: [*const wl_interface; 1] = [
    unsafe { &wl_touch_interface as *const wl_interface },
];
pub static mut wl_seat_requests: [wl_message; 4] = [
    wl_message { name: b"get_pointer\0" as *const u8 as *const c_char, signature: b"n\0" as *const u8 as *const c_char, types: unsafe { &wl_seat_requests_get_pointer_types as *const _ } },
    wl_message { name: b"get_keyboard\0" as *const u8 as *const c_char, signature: b"n\0" as *const u8 as *const c_char, types: unsafe { &wl_seat_requests_get_keyboard_types as *const _ } },
    wl_message { name: b"get_touch\0" as *const u8 as *const c_char, signature: b"n\0" as *const u8 as *const c_char, types: unsafe { &wl_seat_requests_get_touch_types as *const _ } },
    wl_message { name: b"release\0" as *const u8 as *const c_char, signature: b"5\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
pub static mut wl_seat_events: [wl_message; 2] = [
    wl_message { name: b"capabilities\0" as *const u8 as *const c_char, signature: b"u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"name\0" as *const u8 as *const c_char, signature: b"2s\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_seat_interface: wl_interface = wl_interface {
    name: b"wl_seat\0" as *const u8 as *const c_char,
    version: 5,
    request_count: 4,
    requests: unsafe { &wl_seat_requests as *const _ },
    event_count: 2,
    events: unsafe { &wl_seat_events as *const _ },
};

// wl_pointer

static mut wl_pointer_requests_set_cursor_types: [*const wl_interface; 4] = [
    NULLPTR as *const wl_interface,
    unsafe { &wl_surface_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
];
pub static mut wl_pointer_requests: [wl_message; 2] = [
    wl_message { name: b"set_cursor\0" as *const u8 as *const c_char, signature: b"u?oii\0" as *const u8 as *const c_char, types: unsafe { &wl_pointer_requests_set_cursor_types as *const _ } },
    wl_message { name: b"release\0" as *const u8 as *const c_char, signature: b"3\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
static mut wl_pointer_events_enter_types: [*const wl_interface; 4] = [
    NULLPTR as *const wl_interface,
    unsafe { &wl_surface_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
];
static mut wl_pointer_events_leave_types: [*const wl_interface; 2] = [
    NULLPTR as *const wl_interface,
    unsafe { &wl_surface_interface as *const wl_interface },
];
pub static mut wl_pointer_events: [wl_message; 9] = [
    wl_message { name: b"enter\0" as *const u8 as *const c_char, signature: b"uoff\0" as *const u8 as *const c_char, types: unsafe { &wl_pointer_events_enter_types as *const _ } },
    wl_message { name: b"leave\0" as *const u8 as *const c_char, signature: b"uo\0" as *const u8 as *const c_char, types: unsafe { &wl_pointer_events_leave_types as *const _ } },
    wl_message { name: b"motion\0" as *const u8 as *const c_char, signature: b"uff\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"button\0" as *const u8 as *const c_char, signature: b"uuuu\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"axis\0" as *const u8 as *const c_char, signature: b"uuf\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"frame\0" as *const u8 as *const c_char, signature: b"5\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"axis_source\0" as *const u8 as *const c_char, signature: b"5u\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"axis_stop\0" as *const u8 as *const c_char, signature: b"5uu\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"axis_discrete\0" as *const u8 as *const c_char, signature: b"5ui\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_pointer_interface: wl_interface = wl_interface {
    name: b"wl_pointer\0" as *const u8 as *const c_char,
    version: 5,
    request_count: 2,
    requests: unsafe { &wl_pointer_requests as *const _ },
    event_count: 9,
    events: unsafe { &wl_pointer_events as *const _ },
};

// wl_keyboard

pub static mut wl_keyboard_requests: [wl_message; 1] = [
    wl_message { name: b"release\0" as *const u8 as *const c_char, signature: b"3\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
static mut wl_keyboard_events_enter_types: [*const wl_interface; 3] = [
    NULLPTR as *const wl_interface,
    unsafe { &wl_surface_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
];
static mut wl_keyboard_events_leave_types: [*const wl_interface; 2] = [
    NULLPTR as *const wl_interface,
    unsafe { &wl_surface_interface as *const wl_interface },
];
pub static mut wl_keyboard_events: [wl_message; 6] = [
    wl_message { name: b"keymap\0" as *const u8 as *const c_char, signature: b"uhu\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"enter\0" as *const u8 as *const c_char, signature: b"uoa\0" as *const u8 as *const c_char, types: unsafe { &wl_keyboard_events_enter_types as *const _ } },
    wl_message { name: b"leave\0" as *const u8 as *const c_char, signature: b"uo\0" as *const u8 as *const c_char, types: unsafe { &wl_keyboard_events_leave_types as *const _ } },
    wl_message { name: b"key\0" as *const u8 as *const c_char, signature: b"uuuu\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"modifiers\0" as *const u8 as *const c_char, signature: b"uuuuu\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"repeat_info\0" as *const u8 as *const c_char, signature: b"4ii\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_keyboard_interface: wl_interface = wl_interface {
    name: b"wl_keyboard\0" as *const u8 as *const c_char,
    version: 5,
    request_count: 1,
    requests: unsafe { &wl_keyboard_requests as *const _ },
    event_count: 6,
    events: unsafe { &wl_keyboard_events as *const _ },
};

// wl_touch

pub static mut wl_touch_requests: [wl_message; 1] = [
    wl_message { name: b"release\0" as *const u8 as *const c_char, signature: b"3\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
static mut wl_touch_events_down_types: [*const wl_interface; 6] = [
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    unsafe { &wl_surface_interface as *const wl_interface },
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
    NULLPTR as *const wl_interface,
];
pub static mut wl_touch_events: [wl_message; 5] = [
    wl_message { name: b"down\0" as *const u8 as *const c_char, signature: b"uuoiff\0" as *const u8 as *const c_char, types: unsafe { &wl_touch_events_down_types as *const _ } },
    wl_message { name: b"up\0" as *const u8 as *const c_char, signature: b"uui\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"motion\0" as *const u8 as *const c_char, signature: b"uiff\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"frame\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"cancel\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_touch_interface: wl_interface = wl_interface {
    name: b"wl_touch\0" as *const u8 as *const c_char,
    version: 5,
    request_count: 1,
    requests: unsafe { &wl_touch_requests as *const _ },
    event_count: 5,
    events: unsafe { &wl_touch_events as *const _ },
};

// wl_output

pub static mut wl_output_requests: [wl_message; 1] = [
    wl_message { name: b"release\0" as *const u8 as *const c_char, signature: b"3\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];
pub static mut wl_output_events: [wl_message; 4] = [
    wl_message { name: b"geometry\0" as *const u8 as *const c_char, signature: b"iiiiissi\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"mode\0" as *const u8 as *const c_char, signature: b"uiii\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"done\0" as *const u8 as *const c_char, signature: b"2\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"scale\0" as *const u8 as *const c_char, signature: b"2i\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_output_interface: wl_interface = wl_interface {
    name: b"wl_output\0" as *const u8 as *const c_char,
    version: 3,
    request_count: 1,
    requests: unsafe { &wl_output_requests as *const _ },
    event_count: 4,
    events: unsafe { &wl_output_events as *const _ },
};

// wl_region

pub static mut wl_region_requests: [wl_message; 3] = [
    wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"add\0" as *const u8 as *const c_char, signature: b"iiii\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"subtract\0" as *const u8 as *const c_char, signature: b"iiii\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_region_interface: wl_interface = wl_interface {
    name: b"wl_region\0" as *const u8 as *const c_char,
    version: 1,
    request_count: 3,
    requests: unsafe { &wl_region_requests as *const _ },
    event_count: 0,
    events: NULLPTR as *const wl_message,
};

// wl_subcompositor

static mut wl_subcompositor_requests_get_subsurface_types: [*const wl_interface; 3] = [
    unsafe { &wl_subsurface_interface as *const wl_interface },
    unsafe { &wl_surface_interface as *const wl_interface },
    unsafe { &wl_surface_interface as *const wl_interface },
];
pub static mut wl_subcompositor_requests: [wl_message; 2] = [
    wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"get_subsurface\0" as *const u8 as *const c_char, signature: b"noo\0" as *const u8 as *const c_char, types: unsafe { &wl_subcompositor_requests_get_subsurface_types as *const _ } },
];

pub static mut wl_subcompositor_interface: wl_interface = wl_interface {
    name: b"wl_subcompositor\0" as *const u8 as *const c_char,
    version: 1,
    request_count: 2,
    requests: unsafe { &wl_subcompositor_requests as *const _ },
    event_count: 0,
    events: NULLPTR as *const wl_message,
};

// wl_subsurface

static mut wl_subsurface_requests_place_above_types: [*const wl_interface; 1] = [
    unsafe { &wl_surface_interface as *const wl_interface },
];
static mut wl_subsurface_requests_place_below_types: [*const wl_interface; 1] = [
    unsafe { &wl_surface_interface as *const wl_interface },
];
pub static mut wl_subsurface_requests: [wl_message; 6] = [
    wl_message { name: b"destroy\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"set_position\0" as *const u8 as *const c_char, signature: b"ii\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"place_above\0" as *const u8 as *const c_char, signature: b"o\0" as *const u8 as *const c_char, types: unsafe { &wl_subsurface_requests_place_above_types as *const _ } },
    wl_message { name: b"place_below\0" as *const u8 as *const c_char, signature: b"o\0" as *const u8 as *const c_char, types: unsafe { &wl_subsurface_requests_place_below_types as *const _ } },
    wl_message { name: b"set_sync\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
    wl_message { name: b"set_desync\0" as *const u8 as *const c_char, signature: b"\0" as *const u8 as *const c_char, types: unsafe { &types_null as *const _ } },
];

pub static mut wl_subsurface_interface: wl_interface = wl_interface {
    name: b"wl_subsurface\0" as *const u8 as *const c_char,
    version: 1,
    request_count: 6,
    requests: unsafe { &wl_subsurface_requests as *const _ },
    event_count: 0,
    events: NULLPTR as *const wl_message,
};