1 | /* Generated by wayland-scanner 1.16.0 */ |
2 | |
3 | /* |
4 | * Copyright © 2008-2013 Kristian Høgsberg |
5 | * Copyright © 2013 Rafael Antognolli |
6 | * Copyright © 2013 Jasper St. Pierre |
7 | * Copyright © 2010-2013 Intel Corporation |
8 | * |
9 | * Permission is hereby granted, free of charge, to any person obtaining a |
10 | * copy of this software and associated documentation files (the "Software"), |
11 | * to deal in the Software without restriction, including without limitation |
12 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
13 | * and/or sell copies of the Software, and to permit persons to whom the |
14 | * Software is furnished to do so, subject to the following conditions: |
15 | * |
16 | * The above copyright notice and this permission notice (including the next |
17 | * paragraph) shall be included in all copies or substantial portions of the |
18 | * Software. |
19 | * |
20 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
21 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
22 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
23 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
24 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
25 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
26 | * DEALINGS IN THE SOFTWARE. |
27 | */ |
28 | |
29 | #include <stdlib.h> |
30 | #include <stdint.h> |
31 | #include "wayland-util.h" |
32 | |
33 | #ifndef __has_attribute |
34 | # define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */ |
35 | #endif |
36 | |
37 | #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4) |
38 | #define WL_PRIVATE __attribute__ ((visibility("hidden"))) |
39 | #else |
40 | #define WL_PRIVATE |
41 | #endif |
42 | |
43 | extern const struct wl_interface wl_output_interface; |
44 | extern const struct wl_interface wl_seat_interface; |
45 | extern const struct wl_interface wl_surface_interface; |
46 | extern const struct wl_interface ; |
47 | extern const struct wl_interface zxdg_positioner_v6_interface; |
48 | extern const struct wl_interface zxdg_surface_v6_interface; |
49 | extern const struct wl_interface zxdg_toplevel_v6_interface; |
50 | |
51 | static const struct wl_interface *types[] = { |
52 | NULL, |
53 | NULL, |
54 | NULL, |
55 | NULL, |
56 | &zxdg_positioner_v6_interface, |
57 | &zxdg_surface_v6_interface, |
58 | &wl_surface_interface, |
59 | &zxdg_toplevel_v6_interface, |
60 | &zxdg_popup_v6_interface, |
61 | &zxdg_surface_v6_interface, |
62 | &zxdg_positioner_v6_interface, |
63 | &zxdg_toplevel_v6_interface, |
64 | &wl_seat_interface, |
65 | NULL, |
66 | NULL, |
67 | NULL, |
68 | &wl_seat_interface, |
69 | NULL, |
70 | &wl_seat_interface, |
71 | NULL, |
72 | NULL, |
73 | &wl_output_interface, |
74 | &wl_seat_interface, |
75 | NULL, |
76 | }; |
77 | |
78 | static const struct wl_message zxdg_shell_v6_requests[] = { |
79 | { "destroy" , "" , types + 0 }, |
80 | { "create_positioner" , "n" , types + 4 }, |
81 | { "get_xdg_surface" , "no" , types + 5 }, |
82 | { "pong" , "u" , types + 0 }, |
83 | }; |
84 | |
85 | static const struct wl_message zxdg_shell_v6_events[] = { |
86 | { "ping" , "u" , types + 0 }, |
87 | }; |
88 | |
89 | WL_PRIVATE const struct wl_interface zxdg_shell_v6_interface = { |
90 | "zxdg_shell_v6" , 1, |
91 | 4, zxdg_shell_v6_requests, |
92 | 1, zxdg_shell_v6_events, |
93 | }; |
94 | |
95 | static const struct wl_message zxdg_positioner_v6_requests[] = { |
96 | { "destroy" , "" , types + 0 }, |
97 | { "set_size" , "ii" , types + 0 }, |
98 | { "set_anchor_rect" , "iiii" , types + 0 }, |
99 | { "set_anchor" , "u" , types + 0 }, |
100 | { "set_gravity" , "u" , types + 0 }, |
101 | { "set_constraint_adjustment" , "u" , types + 0 }, |
102 | { "set_offset" , "ii" , types + 0 }, |
103 | }; |
104 | |
105 | WL_PRIVATE const struct wl_interface zxdg_positioner_v6_interface = { |
106 | "zxdg_positioner_v6" , 1, |
107 | 7, zxdg_positioner_v6_requests, |
108 | 0, NULL, |
109 | }; |
110 | |
111 | static const struct wl_message zxdg_surface_v6_requests[] = { |
112 | { "destroy" , "" , types + 0 }, |
113 | { "get_toplevel" , "n" , types + 7 }, |
114 | { "get_popup" , "noo" , types + 8 }, |
115 | { "set_window_geometry" , "iiii" , types + 0 }, |
116 | { "ack_configure" , "u" , types + 0 }, |
117 | }; |
118 | |
119 | static const struct wl_message zxdg_surface_v6_events[] = { |
120 | { "configure" , "u" , types + 0 }, |
121 | }; |
122 | |
123 | WL_PRIVATE const struct wl_interface zxdg_surface_v6_interface = { |
124 | "zxdg_surface_v6" , 1, |
125 | 5, zxdg_surface_v6_requests, |
126 | 1, zxdg_surface_v6_events, |
127 | }; |
128 | |
129 | static const struct wl_message zxdg_toplevel_v6_requests[] = { |
130 | { "destroy" , "" , types + 0 }, |
131 | { "set_parent" , "?o" , types + 11 }, |
132 | { "set_title" , "s" , types + 0 }, |
133 | { "set_app_id" , "s" , types + 0 }, |
134 | { "show_window_menu" , "ouii" , types + 12 }, |
135 | { "move" , "ou" , types + 16 }, |
136 | { "resize" , "ouu" , types + 18 }, |
137 | { "set_max_size" , "ii" , types + 0 }, |
138 | { "set_min_size" , "ii" , types + 0 }, |
139 | { "set_maximized" , "" , types + 0 }, |
140 | { "unset_maximized" , "" , types + 0 }, |
141 | { "set_fullscreen" , "?o" , types + 21 }, |
142 | { "unset_fullscreen" , "" , types + 0 }, |
143 | { "set_minimized" , "" , types + 0 }, |
144 | }; |
145 | |
146 | static const struct wl_message zxdg_toplevel_v6_events[] = { |
147 | { "configure" , "iia" , types + 0 }, |
148 | { "close" , "" , types + 0 }, |
149 | }; |
150 | |
151 | WL_PRIVATE const struct wl_interface zxdg_toplevel_v6_interface = { |
152 | "zxdg_toplevel_v6" , 1, |
153 | 14, zxdg_toplevel_v6_requests, |
154 | 2, zxdg_toplevel_v6_events, |
155 | }; |
156 | |
157 | static const struct wl_message [] = { |
158 | { "destroy" , "" , types + 0 }, |
159 | { "grab" , "ou" , types + 22 }, |
160 | }; |
161 | |
162 | static const struct wl_message [] = { |
163 | { "configure" , "iiii" , types + 0 }, |
164 | { "popup_done" , "" , types + 0 }, |
165 | }; |
166 | |
167 | WL_PRIVATE const struct wl_interface = { |
168 | "zxdg_popup_v6" , 1, |
169 | 2, zxdg_popup_v6_requests, |
170 | 2, zxdg_popup_v6_events, |
171 | }; |
172 | |
173 | |