AtlatestRepositorysigil-ui
1
/* Generated by wayland-scanner 1.24.0 */3
/*4
* Copyright 2014 © Stephen "Lyude" Chandler Paul5
* Copyright 2015-2024 © Red Hat, Inc.6
*7
* Permission is hereby granted, free of charge, to any person8
* obtaining a copy of this software and associated documentation files9
* (the "Software"), to deal in the Software without restriction,10
* including without limitation the rights to use, copy, modify, merge,11
* publish, distribute, sublicense, and/or sell copies of the Software,12
* and to permit persons to whom the Software is furnished to do so,13
* subject to the following conditions:14
*15
* The above copyright notice and this permission notice (including the16
* next paragraph) shall be included in all copies or substantial17
* portions of the Software.18
*19
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,20
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF21
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND22
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS23
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN24
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN25
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE26
* SOFTWARE.27
*/29
#include <stdbool.h>30
#include <stdlib.h>31
#include <stdint.h>32
#include "wayland-util.h"34
#ifndef __has_attribute35
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */36
#endif38
#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)39
#define WL_PRIVATE __attribute__ ((visibility("hidden")))40
#else41
#define WL_PRIVATE42
#endif44
extern const struct wl_interface wl_seat_interface;45
extern const struct wl_interface wl_surface_interface;46
extern const struct wl_interface zwp_tablet_pad_dial_v2_interface;47
extern const struct wl_interface zwp_tablet_pad_group_v2_interface;48
extern const struct wl_interface zwp_tablet_pad_ring_v2_interface;49
extern const struct wl_interface zwp_tablet_pad_strip_v2_interface;50
extern const struct wl_interface zwp_tablet_pad_v2_interface;51
extern const struct wl_interface zwp_tablet_seat_v2_interface;52
extern const struct wl_interface zwp_tablet_tool_v2_interface;53
extern const struct wl_interface zwp_tablet_v2_interface;55
static const struct wl_interface *tablet_v2_types[] = {56
NULL,57
NULL,58
NULL,59
&zwp_tablet_seat_v2_interface,60
&wl_seat_interface,61
&zwp_tablet_v2_interface,62
&zwp_tablet_tool_v2_interface,63
&zwp_tablet_pad_v2_interface,64
NULL,65
&wl_surface_interface,66
NULL,67
NULL,68
NULL,69
&zwp_tablet_v2_interface,70
&wl_surface_interface,71
&zwp_tablet_pad_ring_v2_interface,72
&zwp_tablet_pad_strip_v2_interface,73
&zwp_tablet_pad_dial_v2_interface,74
&zwp_tablet_pad_group_v2_interface,75
NULL,76
&zwp_tablet_v2_interface,77
&wl_surface_interface,78
NULL,79
&wl_surface_interface,80
};82
static const struct wl_message zwp_tablet_manager_v2_requests[] = {83
{ "get_tablet_seat", "no", tablet_v2_types + 3 },84
{ "destroy", "", tablet_v2_types + 0 },85
};87
WL_PRIVATE const struct wl_interface zwp_tablet_manager_v2_interface = {88
"zwp_tablet_manager_v2", 2,89
2, zwp_tablet_manager_v2_requests,90
0, NULL,91
};93
static const struct wl_message zwp_tablet_seat_v2_requests[] = {94
{ "destroy", "", tablet_v2_types + 0 },95
};97
static const struct wl_message zwp_tablet_seat_v2_events[] = {98
{ "tablet_added", "n", tablet_v2_types + 5 },99
{ "tool_added", "n", tablet_v2_types + 6 },100
{ "pad_added", "n", tablet_v2_types + 7 },101
};103
WL_PRIVATE const struct wl_interface zwp_tablet_seat_v2_interface = {104
"zwp_tablet_seat_v2", 2,105
1, zwp_tablet_seat_v2_requests,106
3, zwp_tablet_seat_v2_events,107
};109
static const struct wl_message zwp_tablet_tool_v2_requests[] = {110
{ "set_cursor", "u?oii", tablet_v2_types + 8 },111
{ "destroy", "", tablet_v2_types + 0 },112
};114
static const struct wl_message zwp_tablet_tool_v2_events[] = {115
{ "type", "u", tablet_v2_types + 0 },116
{ "hardware_serial", "uu", tablet_v2_types + 0 },117
{ "hardware_id_wacom", "uu", tablet_v2_types + 0 },118
{ "capability", "u", tablet_v2_types + 0 },119
{ "done", "", tablet_v2_types + 0 },120
{ "removed", "", tablet_v2_types + 0 },121
{ "proximity_in", "uoo", tablet_v2_types + 12 },122
{ "proximity_out", "", tablet_v2_types + 0 },123
{ "down", "u", tablet_v2_types + 0 },124
{ "up", "", tablet_v2_types + 0 },125
{ "motion", "ff", tablet_v2_types + 0 },126
{ "pressure", "u", tablet_v2_types + 0 },127
{ "distance", "u", tablet_v2_types + 0 },128
{ "tilt", "ff", tablet_v2_types + 0 },129
{ "rotation", "f", tablet_v2_types + 0 },130
{ "slider", "i", tablet_v2_types + 0 },131
{ "wheel", "fi", tablet_v2_types + 0 },132
{ "button", "uuu", tablet_v2_types + 0 },133
{ "frame", "u", tablet_v2_types + 0 },134
};136
WL_PRIVATE const struct wl_interface zwp_tablet_tool_v2_interface = {137
"zwp_tablet_tool_v2", 2,138
2, zwp_tablet_tool_v2_requests,139
19, zwp_tablet_tool_v2_events,140
};142
static const struct wl_message zwp_tablet_v2_requests[] = {143
{ "destroy", "", tablet_v2_types + 0 },144
};146
static const struct wl_message zwp_tablet_v2_events[] = {147
{ "name", "s", tablet_v2_types + 0 },148
{ "id", "uu", tablet_v2_types + 0 },149
{ "path", "s", tablet_v2_types + 0 },150
{ "done", "", tablet_v2_types + 0 },151
{ "removed", "", tablet_v2_types + 0 },152
{ "bustype", "2u", tablet_v2_types + 0 },153
};155
WL_PRIVATE const struct wl_interface zwp_tablet_v2_interface = {156
"zwp_tablet_v2", 2,157
1, zwp_tablet_v2_requests,158
6, zwp_tablet_v2_events,159
};161
static const struct wl_message zwp_tablet_pad_ring_v2_requests[] = {162
{ "set_feedback", "su", tablet_v2_types + 0 },163
{ "destroy", "", tablet_v2_types + 0 },164
};166
static const struct wl_message zwp_tablet_pad_ring_v2_events[] = {167
{ "source", "u", tablet_v2_types + 0 },168
{ "angle", "f", tablet_v2_types + 0 },169
{ "stop", "", tablet_v2_types + 0 },170
{ "frame", "u", tablet_v2_types + 0 },171
};173
WL_PRIVATE const struct wl_interface zwp_tablet_pad_ring_v2_interface = {174
"zwp_tablet_pad_ring_v2", 2,175
2, zwp_tablet_pad_ring_v2_requests,176
4, zwp_tablet_pad_ring_v2_events,177
};179
static const struct wl_message zwp_tablet_pad_strip_v2_requests[] = {180
{ "set_feedback", "su", tablet_v2_types + 0 },181
{ "destroy", "", tablet_v2_types + 0 },182
};184
static const struct wl_message zwp_tablet_pad_strip_v2_events[] = {185
{ "source", "u", tablet_v2_types + 0 },186
{ "position", "u", tablet_v2_types + 0 },187
{ "stop", "", tablet_v2_types + 0 },188
{ "frame", "u", tablet_v2_types + 0 },189
};191
WL_PRIVATE const struct wl_interface zwp_tablet_pad_strip_v2_interface = {192
"zwp_tablet_pad_strip_v2", 2,193
2, zwp_tablet_pad_strip_v2_requests,194
4, zwp_tablet_pad_strip_v2_events,195
};197
static const struct wl_message zwp_tablet_pad_group_v2_requests[] = {198
{ "destroy", "", tablet_v2_types + 0 },199
};201
static const struct wl_message zwp_tablet_pad_group_v2_events[] = {202
{ "buttons", "a", tablet_v2_types + 0 },203
{ "ring", "n", tablet_v2_types + 15 },204
{ "strip", "n", tablet_v2_types + 16 },205
{ "modes", "u", tablet_v2_types + 0 },206
{ "done", "", tablet_v2_types + 0 },207
{ "mode_switch", "uuu", tablet_v2_types + 0 },208
{ "dial", "2n", tablet_v2_types + 17 },209
};211
WL_PRIVATE const struct wl_interface zwp_tablet_pad_group_v2_interface = {212
"zwp_tablet_pad_group_v2", 2,213
1, zwp_tablet_pad_group_v2_requests,214
7, zwp_tablet_pad_group_v2_events,215
};217
static const struct wl_message zwp_tablet_pad_v2_requests[] = {218
{ "set_feedback", "usu", tablet_v2_types + 0 },219
{ "destroy", "", tablet_v2_types + 0 },220
};222
static const struct wl_message zwp_tablet_pad_v2_events[] = {223
{ "group", "n", tablet_v2_types + 18 },224
{ "path", "s", tablet_v2_types + 0 },225
{ "buttons", "u", tablet_v2_types + 0 },226
{ "done", "", tablet_v2_types + 0 },227
{ "button", "uuu", tablet_v2_types + 0 },228
{ "enter", "uoo", tablet_v2_types + 19 },229
{ "leave", "uo", tablet_v2_types + 22 },230
{ "removed", "", tablet_v2_types + 0 },231
};233
WL_PRIVATE const struct wl_interface zwp_tablet_pad_v2_interface = {234
"zwp_tablet_pad_v2", 2,235
2, zwp_tablet_pad_v2_requests,236
8, zwp_tablet_pad_v2_events,237
};239
static const struct wl_message zwp_tablet_pad_dial_v2_requests[] = {240
{ "set_feedback", "su", tablet_v2_types + 0 },241
{ "destroy", "", tablet_v2_types + 0 },242
};244
static const struct wl_message zwp_tablet_pad_dial_v2_events[] = {245
{ "delta", "i", tablet_v2_types + 0 },246
{ "frame", "u", tablet_v2_types + 0 },247
};249
WL_PRIVATE const struct wl_interface zwp_tablet_pad_dial_v2_interface = {250
"zwp_tablet_pad_dial_v2", 2,251
2, zwp_tablet_pad_dial_v2_requests,252
2, zwp_tablet_pad_dial_v2_events,253
};