comparison dep/animia/src/win/wayland/wlr-foreign-toplevel-management-unstable-v1.c @ 217:47ddd6b638e3

dep/animia: add missing wayland files derp
author Paper <mrpapersonic@gmail.com>
date Sun, 07 Jan 2024 13:27:22 -0500
parents
children
comparison
equal deleted inserted replaced
216:8a482049b968 217:47ddd6b638e3
1 /* Generated by wayland-scanner 1.21.0 */
2
3 /*
4 * Copyright © 2018 Ilia Bozhinov
5 *
6 * Permission to use, copy, modify, distribute, and sell this
7 * software and its documentation for any purpose is hereby granted
8 * without fee, provided that the above copyright notice appear in
9 * all copies and that both that copyright notice and this permission
10 * notice appear in supporting documentation, and that the name of
11 * the copyright holders not be used in advertising or publicity
12 * pertaining to distribution of the software without specific,
13 * written prior permission. The copyright holders make no
14 * representations about the suitability of this software for any
15 * purpose. It is provided "as is" without express or implied
16 * warranty.
17 *
18 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
19 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
21 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
22 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
23 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
24 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
25 * THIS SOFTWARE.
26 */
27
28 #include <stdlib.h>
29 #include <stdint.h>
30 #include "wayland-util.h"
31
32 #ifndef __has_attribute
33 # define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
34 #endif
35
36 #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
37 #define WL_PRIVATE __attribute__ ((visibility("hidden")))
38 #else
39 #define WL_PRIVATE
40 #endif
41
42 extern const struct wl_interface wl_output_interface;
43 extern const struct wl_interface wl_seat_interface;
44 extern const struct wl_interface wl_surface_interface;
45 extern const struct wl_interface zwlr_foreign_toplevel_handle_v1_interface;
46
47 static const struct wl_interface *wlr_foreign_toplevel_management_unstable_v1_types[] = {
48 NULL,
49 &zwlr_foreign_toplevel_handle_v1_interface,
50 &wl_seat_interface,
51 &wl_surface_interface,
52 NULL,
53 NULL,
54 NULL,
55 NULL,
56 &wl_output_interface,
57 &wl_output_interface,
58 &wl_output_interface,
59 &zwlr_foreign_toplevel_handle_v1_interface,
60 };
61
62 static const struct wl_message zwlr_foreign_toplevel_manager_v1_requests[] = {
63 { "stop", "", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
64 };
65
66 static const struct wl_message zwlr_foreign_toplevel_manager_v1_events[] = {
67 { "toplevel", "n", wlr_foreign_toplevel_management_unstable_v1_types + 1 },
68 { "finished", "", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
69 };
70
71 WL_PRIVATE const struct wl_interface zwlr_foreign_toplevel_manager_v1_interface = {
72 "zwlr_foreign_toplevel_manager_v1", 3,
73 1, zwlr_foreign_toplevel_manager_v1_requests,
74 2, zwlr_foreign_toplevel_manager_v1_events,
75 };
76
77 static const struct wl_message zwlr_foreign_toplevel_handle_v1_requests[] = {
78 { "set_maximized", "", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
79 { "unset_maximized", "", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
80 { "set_minimized", "", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
81 { "unset_minimized", "", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
82 { "activate", "o", wlr_foreign_toplevel_management_unstable_v1_types + 2 },
83 { "close", "", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
84 { "set_rectangle", "oiiii", wlr_foreign_toplevel_management_unstable_v1_types + 3 },
85 { "destroy", "", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
86 { "set_fullscreen", "2?o", wlr_foreign_toplevel_management_unstable_v1_types + 8 },
87 { "unset_fullscreen", "2", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
88 };
89
90 static const struct wl_message zwlr_foreign_toplevel_handle_v1_events[] = {
91 { "title", "s", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
92 { "app_id", "s", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
93 { "output_enter", "o", wlr_foreign_toplevel_management_unstable_v1_types + 9 },
94 { "output_leave", "o", wlr_foreign_toplevel_management_unstable_v1_types + 10 },
95 { "state", "a", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
96 { "done", "", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
97 { "closed", "", wlr_foreign_toplevel_management_unstable_v1_types + 0 },
98 { "parent", "3?o", wlr_foreign_toplevel_management_unstable_v1_types + 11 },
99 };
100
101 WL_PRIVATE const struct wl_interface zwlr_foreign_toplevel_handle_v1_interface = {
102 "zwlr_foreign_toplevel_handle_v1", 3,
103 10, zwlr_foreign_toplevel_handle_v1_requests,
104 8, zwlr_foreign_toplevel_handle_v1_events,
105 };
106