1 | /* Generated by wayland-scanner 1.13.0 */ |
2 | // Hand-edited to resolve conflicts with xdg-shell stable |
3 | |
4 | /* |
5 | * Copyright © 2008-2013 Kristian Høgsberg |
6 | * Copyright © 2013 Rafael Antognolli |
7 | * Copyright © 2013 Jasper St. Pierre |
8 | * Copyright © 2010-2013 Intel Corporation |
9 | * |
10 | * Permission is hereby granted, free of charge, to any person obtaining a |
11 | * copy of this software and associated documentation files (the "Software"), |
12 | * to deal in the Software without restriction, including without limitation |
13 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
14 | * and/or sell copies of the Software, and to permit persons to whom the |
15 | * Software is furnished to do so, subject to the following conditions: |
16 | * |
17 | * The above copyright notice and this permission notice (including the next |
18 | * paragraph) shall be included in all copies or substantial portions of the |
19 | * Software. |
20 | * |
21 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
22 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
23 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
24 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
25 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
26 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
27 | * DEALINGS IN THE SOFTWARE. |
28 | */ |
29 | |
30 | #include <stdlib.h> |
31 | #include <stdint.h> |
32 | #include "wayland-util.h" |
33 | |
34 | extern const struct wl_interface wl_output_interface; |
35 | extern const struct wl_interface wl_seat_interface; |
36 | extern const struct wl_interface wl_surface_interface; |
37 | extern const struct wl_interface ; |
38 | extern const struct wl_interface xdg_surface_v5_interface; |
39 | |
40 | static const struct wl_interface *types[] = { |
41 | NULL, |
42 | NULL, |
43 | NULL, |
44 | NULL, |
45 | &xdg_surface_v5_interface, |
46 | &wl_surface_interface, |
47 | &xdg_popup_v5_interface, |
48 | &wl_surface_interface, |
49 | &wl_surface_interface, |
50 | &wl_seat_interface, |
51 | NULL, |
52 | NULL, |
53 | NULL, |
54 | &xdg_surface_v5_interface, |
55 | &wl_seat_interface, |
56 | NULL, |
57 | NULL, |
58 | NULL, |
59 | &wl_seat_interface, |
60 | NULL, |
61 | &wl_seat_interface, |
62 | NULL, |
63 | NULL, |
64 | &wl_output_interface, |
65 | }; |
66 | |
67 | static const struct wl_message xdg_shell_requests[] = { |
68 | { "destroy" , "" , types + 0 }, |
69 | { "use_unstable_version" , "i" , types + 0 }, |
70 | { "get_xdg_surface" , "no" , types + 4 }, |
71 | { "get_xdg_popup" , "nooouii" , types + 6 }, |
72 | { "pong" , "u" , types + 0 }, |
73 | }; |
74 | |
75 | static const struct wl_message xdg_shell_events[] = { |
76 | { "ping" , "u" , types + 0 }, |
77 | }; |
78 | |
79 | WL_EXPORT const struct wl_interface xdg_shell_v5_interface = { |
80 | "xdg_shell" , 1, |
81 | 5, xdg_shell_requests, |
82 | 1, xdg_shell_events, |
83 | }; |
84 | |
85 | static const struct wl_message xdg_surface_requests[] = { |
86 | { .name: "destroy" , .signature: "" , .types: types + 0 }, |
87 | { "set_parent" , "?o" , types + 13 }, |
88 | { "set_title" , "s" , types + 0 }, |
89 | { "set_app_id" , "s" , types + 0 }, |
90 | { "show_window_menu" , "ouii" , types + 14 }, |
91 | { "move" , "ou" , types + 18 }, |
92 | { "resize" , "ouu" , types + 20 }, |
93 | { "ack_configure" , "u" , types + 0 }, |
94 | { "set_window_geometry" , "iiii" , types + 0 }, |
95 | { "set_maximized" , "" , types + 0 }, |
96 | { "unset_maximized" , "" , types + 0 }, |
97 | { "set_fullscreen" , "?o" , types + 23 }, |
98 | { "unset_fullscreen" , "" , types + 0 }, |
99 | { "set_minimized" , "" , types + 0 }, |
100 | }; |
101 | |
102 | static const struct wl_message xdg_surface_events[] = { |
103 | { "configure" , "iiau" , types + 0 }, |
104 | { "close" , "" , types + 0 }, |
105 | }; |
106 | |
107 | WL_EXPORT const struct wl_interface xdg_surface_v5_interface = { |
108 | "xdg_surface" , 1, |
109 | 14, xdg_surface_requests, |
110 | 2, xdg_surface_events, |
111 | }; |
112 | |
113 | static const struct wl_message [] = { |
114 | { .name: "destroy" , .signature: "" , .types: types + 0 }, |
115 | }; |
116 | |
117 | static const struct wl_message [] = { |
118 | { "popup_done" , "" , types + 0 }, |
119 | }; |
120 | |
121 | WL_EXPORT const struct wl_interface = { |
122 | "xdg_popup" , 1, |
123 | 1, xdg_popup_requests, |
124 | 1, xdg_popup_events, |
125 | }; |
126 | |
127 | |