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