1 | /* Generated by wayland-scanner 1.16.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 <stdlib.h> |
28 | #include <stdint.h> |
29 | #include "wayland-util.h" |
30 | |
31 | #ifndef __has_attribute |
32 | # define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */ |
33 | #endif |
34 | |
35 | #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4) |
36 | #define WL_PRIVATE __attribute__ ((visibility("hidden"))) |
37 | #else |
38 | #define WL_PRIVATE |
39 | #endif |
40 | |
41 | extern const struct wl_interface wl_pointer_interface; |
42 | extern const struct wl_interface wl_region_interface; |
43 | extern const struct wl_interface wl_surface_interface; |
44 | extern const struct wl_interface zwp_confined_pointer_v1_interface; |
45 | extern const struct wl_interface zwp_locked_pointer_v1_interface; |
46 | |
47 | static const struct wl_interface *types[] = { |
48 | NULL, |
49 | NULL, |
50 | &zwp_locked_pointer_v1_interface, |
51 | &wl_surface_interface, |
52 | &wl_pointer_interface, |
53 | &wl_region_interface, |
54 | NULL, |
55 | &zwp_confined_pointer_v1_interface, |
56 | &wl_surface_interface, |
57 | &wl_pointer_interface, |
58 | &wl_region_interface, |
59 | NULL, |
60 | &wl_region_interface, |
61 | &wl_region_interface, |
62 | }; |
63 | |
64 | static const struct wl_message zwp_pointer_constraints_v1_requests[] = { |
65 | { "destroy" , "" , types + 0 }, |
66 | { "lock_pointer" , "noo?ou" , types + 2 }, |
67 | { "confine_pointer" , "noo?ou" , types + 7 }, |
68 | }; |
69 | |
70 | WL_PRIVATE const struct wl_interface zwp_pointer_constraints_v1_interface = { |
71 | "zwp_pointer_constraints_v1" , 1, |
72 | 3, zwp_pointer_constraints_v1_requests, |
73 | 0, NULL, |
74 | }; |
75 | |
76 | static const struct wl_message zwp_locked_pointer_v1_requests[] = { |
77 | { "destroy" , "" , types + 0 }, |
78 | { "set_cursor_position_hint" , "ff" , types + 0 }, |
79 | { "set_region" , "?o" , types + 12 }, |
80 | }; |
81 | |
82 | static const struct wl_message zwp_locked_pointer_v1_events[] = { |
83 | { "locked" , "" , types + 0 }, |
84 | { "unlocked" , "" , types + 0 }, |
85 | }; |
86 | |
87 | WL_PRIVATE const struct wl_interface zwp_locked_pointer_v1_interface = { |
88 | "zwp_locked_pointer_v1" , 1, |
89 | 3, zwp_locked_pointer_v1_requests, |
90 | 2, zwp_locked_pointer_v1_events, |
91 | }; |
92 | |
93 | static const struct wl_message zwp_confined_pointer_v1_requests[] = { |
94 | { "destroy" , "" , types + 0 }, |
95 | { "set_region" , "?o" , types + 13 }, |
96 | }; |
97 | |
98 | static const struct wl_message zwp_confined_pointer_v1_events[] = { |
99 | { "confined" , "" , types + 0 }, |
100 | { "unconfined" , "" , types + 0 }, |
101 | }; |
102 | |
103 | WL_PRIVATE const struct wl_interface zwp_confined_pointer_v1_interface = { |
104 | "zwp_confined_pointer_v1" , 1, |
105 | 2, zwp_confined_pointer_v1_requests, |
106 | 2, zwp_confined_pointer_v1_events, |
107 | }; |
108 | |
109 | |