v / thirdparty / sokol / xdg-toplevel-icon-v1-protocol.c
83 lines · 71 sloc · 2.93 KB · 5d6de17f708abcf79877f70e677d60a4e23bb727
Raw
1/* Generated by wayland-scanner 1.24.0 */
2
3/*
4 * Copyright © 2023-2024 Matthias Klumpp
5 * Copyright © 2024 David Edmundson
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice (including the next
15 * paragraph) shall be included in all copies or substantial portions of the
16 * Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24 * DEALINGS IN THE SOFTWARE.
25 */
26
27#include <stdbool.h>
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
42extern const struct wl_interface wl_buffer_interface;
43extern const struct wl_interface xdg_toplevel_interface;
44extern const struct wl_interface xdg_toplevel_icon_v1_interface;
45
46static const struct wl_interface *xdg_toplevel_icon_v1_types[] = {
47 NULL,
48 &xdg_toplevel_icon_v1_interface,
49 &xdg_toplevel_interface,
50 &xdg_toplevel_icon_v1_interface,
51 &wl_buffer_interface,
52 NULL,
53};
54
55static const struct wl_message xdg_toplevel_icon_manager_v1_requests[] = {
56 { "destroy", "", xdg_toplevel_icon_v1_types + 0 },
57 { "create_icon", "n", xdg_toplevel_icon_v1_types + 1 },
58 { "set_icon", "o?o", xdg_toplevel_icon_v1_types + 2 },
59};
60
61static const struct wl_message xdg_toplevel_icon_manager_v1_events[] = {
62 { "icon_size", "i", xdg_toplevel_icon_v1_types + 0 },
63 { "done", "", xdg_toplevel_icon_v1_types + 0 },
64};
65
66WL_PRIVATE const struct wl_interface xdg_toplevel_icon_manager_v1_interface = {
67 "xdg_toplevel_icon_manager_v1", 1,
68 3, xdg_toplevel_icon_manager_v1_requests,
69 2, xdg_toplevel_icon_manager_v1_events,
70};
71
72static const struct wl_message xdg_toplevel_icon_v1_requests[] = {
73 { "destroy", "", xdg_toplevel_icon_v1_types + 0 },
74 { "set_name", "s", xdg_toplevel_icon_v1_types + 0 },
75 { "add_buffer", "oi", xdg_toplevel_icon_v1_types + 4 },
76};
77
78WL_PRIVATE const struct wl_interface xdg_toplevel_icon_v1_interface = {
79 "xdg_toplevel_icon_v1", 1,
80 3, xdg_toplevel_icon_v1_requests,
81 0, NULL,
82};
83
84