v / thirdparty / sokol / relative-pointer-unstable-v1-protocol.c
80 lines · 68 sloc · 2.7 KB · 5d6de17f708abcf79877f70e677d60a4e23bb727
Raw
1/* Generated by wayland-scanner 1.24.0 */
2
3/*
4 * Copyright © 2014 Jonas Ådahl
5 * Copyright © 2015 Red Hat Inc.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice (including the next
15 * paragraph) shall be included in all copies or substantial portions of the
16 * Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24 * DEALINGS IN THE SOFTWARE.
25 */
26
27#include <stdbool.h>
28#include <stdlib.h>
29#include <stdint.h>
30#include "wayland-util.h"
31
32#ifndef __has_attribute
33# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
34#endif
35
36#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
37#define WL_PRIVATE __attribute__ ((visibility("hidden")))
38#else
39#define WL_PRIVATE
40#endif
41
42extern const struct wl_interface wl_pointer_interface;
43extern const struct wl_interface zwp_relative_pointer_v1_interface;
44
45static const struct wl_interface *relative_pointer_unstable_v1_types[] = {
46 NULL,
47 NULL,
48 NULL,
49 NULL,
50 NULL,
51 NULL,
52 &zwp_relative_pointer_v1_interface,
53 &wl_pointer_interface,
54};
55
56static const struct wl_message zwp_relative_pointer_manager_v1_requests[] = {
57 { "destroy", "", relative_pointer_unstable_v1_types + 0 },
58 { "get_relative_pointer", "no", relative_pointer_unstable_v1_types + 6 },
59};
60
61WL_PRIVATE const struct wl_interface zwp_relative_pointer_manager_v1_interface = {
62 "zwp_relative_pointer_manager_v1", 1,
63 2, zwp_relative_pointer_manager_v1_requests,
64 0, NULL,
65};
66
67static const struct wl_message zwp_relative_pointer_v1_requests[] = {
68 { "destroy", "", relative_pointer_unstable_v1_types + 0 },
69};
70
71static const struct wl_message zwp_relative_pointer_v1_events[] = {
72 { "relative_motion", "uuffff", relative_pointer_unstable_v1_types + 0 },
73};
74
75WL_PRIVATE const struct wl_interface zwp_relative_pointer_v1_interface = {
76 "zwp_relative_pointer_v1", 1,
77 1, zwp_relative_pointer_v1_requests,
78 1, zwp_relative_pointer_v1_events,
79};
80
81