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