AtlatestRepositorysigil-ui

sigil-ui / tree / native / waylandwlr-layer-shell-unstable-v1-protocol.c

1/* Generated by wayland-scanner 1.24.0 */
2
3/*
4 * Copyright © 2017 Drew DeVault
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 */
28#include <stdbool.h>
29#include <stdlib.h>
30#include <stdint.h>
31#include "wayland-util.h"
33#ifndef __has_attribute
34# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
35#endif
37#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
38#define WL_PRIVATE __attribute__ ((visibility("hidden")))
39#else
40#define WL_PRIVATE
41#endif
43extern const struct wl_interface wl_output_interface;
44extern const struct wl_interface wl_surface_interface;
45extern const struct wl_interface xdg_popup_interface;
46extern const struct wl_interface zwlr_layer_surface_v1_interface;
48static const struct wl_interface *wlr_layer_shell_unstable_v1_types[] = {
49 NULL,
50 NULL,
51 NULL,
52 NULL,
53 &zwlr_layer_surface_v1_interface,
54 &wl_surface_interface,
55 &wl_output_interface,
56 NULL,
57 NULL,
58 &xdg_popup_interface,
59};
61static const struct wl_message zwlr_layer_shell_v1_requests[] = {
62 { "get_layer_surface", "no?ous", wlr_layer_shell_unstable_v1_types + 4 },
63 { "destroy", "3", wlr_layer_shell_unstable_v1_types + 0 },
64};
66WL_PRIVATE const struct wl_interface zwlr_layer_shell_v1_interface = {
67 "zwlr_layer_shell_v1", 5,
68 2, zwlr_layer_shell_v1_requests,
69 0, NULL,
70};
72static const struct wl_message zwlr_layer_surface_v1_requests[] = {
73 { "set_size", "uu", wlr_layer_shell_unstable_v1_types + 0 },
74 { "set_anchor", "u", wlr_layer_shell_unstable_v1_types + 0 },
75 { "set_exclusive_zone", "i", wlr_layer_shell_unstable_v1_types + 0 },
76 { "set_margin", "iiii", wlr_layer_shell_unstable_v1_types + 0 },
77 { "set_keyboard_interactivity", "u", wlr_layer_shell_unstable_v1_types + 0 },
78 { "get_popup", "o", wlr_layer_shell_unstable_v1_types + 9 },
79 { "ack_configure", "u", wlr_layer_shell_unstable_v1_types + 0 },
80 { "destroy", "", wlr_layer_shell_unstable_v1_types + 0 },
81 { "set_layer", "2u", wlr_layer_shell_unstable_v1_types + 0 },
82 { "set_exclusive_edge", "5u", wlr_layer_shell_unstable_v1_types + 0 },
83};
85static const struct wl_message zwlr_layer_surface_v1_events[] = {
86 { "configure", "uuu", wlr_layer_shell_unstable_v1_types + 0 },
87 { "closed", "", wlr_layer_shell_unstable_v1_types + 0 },
88};
90WL_PRIVATE const struct wl_interface zwlr_layer_surface_v1_interface = {
91 "zwlr_layer_surface_v1", 5,
92 10, zwlr_layer_surface_v1_requests,
93 2, zwlr_layer_surface_v1_events,
94};