Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / widget / gtk / wayland / pointer-constraints-unstable-v1-protocol.c
blobc28ddf6918697ae5d3f7853ecc8390749486d6f9
1 /* Generated by wayland-scanner 1.18.0 */
3 /*
4 * Copyright © 2014 Jonas Ådahl
5 * Copyright © 2015 Red Hat Inc.
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:
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.
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.
27 #include <stdlib.h>
28 #include <stdint.h>
29 #include "wayland-util.h"
31 #pragma GCC visibility push(default)
32 extern const struct wl_interface wl_pointer_interface;
33 extern const struct wl_interface wl_region_interface;
34 extern const struct wl_interface wl_surface_interface;
35 extern const struct wl_interface zwp_confined_pointer_v1_interface;
36 extern const struct wl_interface zwp_locked_pointer_v1_interface;
37 #pragma GCC visibility pop
39 static const struct wl_interface* pointer_constraints_unstable_v1_types[] = {
40 NULL,
41 NULL,
42 &zwp_locked_pointer_v1_interface,
43 &wl_surface_interface,
44 &wl_pointer_interface,
45 &wl_region_interface,
46 NULL,
47 &zwp_confined_pointer_v1_interface,
48 &wl_surface_interface,
49 &wl_pointer_interface,
50 &wl_region_interface,
51 NULL,
52 &wl_region_interface,
53 &wl_region_interface,
56 static const struct wl_message zwp_pointer_constraints_v1_requests[] = {
57 {"destroy", "", pointer_constraints_unstable_v1_types + 0},
58 {"lock_pointer", "noo?ou", pointer_constraints_unstable_v1_types + 2},
59 {"confine_pointer", "noo?ou", pointer_constraints_unstable_v1_types + 7},
62 WL_EXPORT const struct wl_interface zwp_pointer_constraints_v1_interface = {
63 "zwp_pointer_constraints_v1", 1, 3,
64 zwp_pointer_constraints_v1_requests, 0, NULL,
67 static const struct wl_message zwp_locked_pointer_v1_requests[] = {
68 {"destroy", "", pointer_constraints_unstable_v1_types + 0},
69 {"set_cursor_position_hint", "ff",
70 pointer_constraints_unstable_v1_types + 0},
71 {"set_region", "?o", pointer_constraints_unstable_v1_types + 12},
74 static const struct wl_message zwp_locked_pointer_v1_events[] = {
75 {"locked", "", pointer_constraints_unstable_v1_types + 0},
76 {"unlocked", "", pointer_constraints_unstable_v1_types + 0},
79 WL_EXPORT const struct wl_interface zwp_locked_pointer_v1_interface = {
80 "zwp_locked_pointer_v1", 1, 3,
81 zwp_locked_pointer_v1_requests, 2, zwp_locked_pointer_v1_events,
84 static const struct wl_message zwp_confined_pointer_v1_requests[] = {
85 {"destroy", "", pointer_constraints_unstable_v1_types + 0},
86 {"set_region", "?o", pointer_constraints_unstable_v1_types + 13},
89 static const struct wl_message zwp_confined_pointer_v1_events[] = {
90 {"confined", "", pointer_constraints_unstable_v1_types + 0},
91 {"unconfined", "", pointer_constraints_unstable_v1_types + 0},
94 WL_EXPORT const struct wl_interface zwp_confined_pointer_v1_interface = {
95 "zwp_confined_pointer_v1", 1, 2,
96 zwp_confined_pointer_v1_requests, 2, zwp_confined_pointer_v1_events,