AtlatestRepositorysigil-ui

sigil-ui / tree / native / waylandtablet-v2-protocol.c

1/* Generated by wayland-scanner 1.24.0 */
2
3/*
4 * Copyright 2014 © Stephen "Lyude" Chandler Paul
5 * Copyright 2015-2024 © Red Hat, Inc.
6 *
7 * Permission is hereby granted, free of charge, to any person
8 * obtaining a copy of this software and associated documentation files
9 * (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 the
16 * next paragraph) shall be included in all copies or substantial
17 * 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 OF
21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
23 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
24 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26 * SOFTWARE.
27 */
29#include <stdbool.h>
30#include <stdlib.h>
31#include <stdint.h>
32#include "wayland-util.h"
34#ifndef __has_attribute
35# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
36#endif
38#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
39#define WL_PRIVATE __attribute__ ((visibility("hidden")))
40#else
41#define WL_PRIVATE
42#endif
44extern const struct wl_interface wl_seat_interface;
45extern const struct wl_interface wl_surface_interface;
46extern const struct wl_interface zwp_tablet_pad_dial_v2_interface;
47extern const struct wl_interface zwp_tablet_pad_group_v2_interface;
48extern const struct wl_interface zwp_tablet_pad_ring_v2_interface;
49extern const struct wl_interface zwp_tablet_pad_strip_v2_interface;
50extern const struct wl_interface zwp_tablet_pad_v2_interface;
51extern const struct wl_interface zwp_tablet_seat_v2_interface;
52extern const struct wl_interface zwp_tablet_tool_v2_interface;
53extern const struct wl_interface zwp_tablet_v2_interface;
55static 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};
82static 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};
87WL_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};
93static const struct wl_message zwp_tablet_seat_v2_requests[] = {
94 { "destroy", "", tablet_v2_types + 0 },
95};
97static 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};
103WL_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};
109static 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};
114static 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};
136WL_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};
142static const struct wl_message zwp_tablet_v2_requests[] = {
143 { "destroy", "", tablet_v2_types + 0 },
144};
146static 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};
155WL_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};
161static 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};
166static 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};
173WL_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};
179static 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};
184static 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};
191WL_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};
197static const struct wl_message zwp_tablet_pad_group_v2_requests[] = {
198 { "destroy", "", tablet_v2_types + 0 },
199};
201static 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};
211WL_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};
217static const struct wl_message zwp_tablet_pad_v2_requests[] = {
218 { "set_feedback", "usu", tablet_v2_types + 0 },
219 { "destroy", "", tablet_v2_types + 0 },
220};
222static 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};
233WL_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};
239static 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};
244static 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};
249WL_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};