github.com/utopiagio/gio@v0.0.8/app/wayland_xdg_decoration.c (about) 1 //go:build ((linux && !android) || freebsd) && !nowayland 2 // +build linux,!android freebsd 3 // +build !nowayland 4 5 /* Generated by wayland-scanner 1.19.0 */ 6 7 /* 8 * Copyright © 2018 Simon Ser 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 #ifndef __has_attribute 35 # define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */ 36 #endif 37 38 #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4) 39 #define WL_PRIVATE __attribute__ ((visibility("hidden"))) 40 #else 41 #define WL_PRIVATE 42 #endif 43 44 extern const struct wl_interface xdg_toplevel_interface; 45 extern const struct wl_interface zxdg_toplevel_decoration_v1_interface; 46 47 static const struct wl_interface *xdg_decoration_unstable_v1_types[] = { 48 NULL, 49 &zxdg_toplevel_decoration_v1_interface, 50 &xdg_toplevel_interface, 51 }; 52 53 static const struct wl_message zxdg_decoration_manager_v1_requests[] = { 54 { "destroy", "", xdg_decoration_unstable_v1_types + 0 }, 55 { "get_toplevel_decoration", "no", xdg_decoration_unstable_v1_types + 1 }, 56 }; 57 58 WL_PRIVATE const struct wl_interface zxdg_decoration_manager_v1_interface = { 59 "zxdg_decoration_manager_v1", 1, 60 2, zxdg_decoration_manager_v1_requests, 61 0, NULL, 62 }; 63 64 static const struct wl_message zxdg_toplevel_decoration_v1_requests[] = { 65 { "destroy", "", xdg_decoration_unstable_v1_types + 0 }, 66 { "set_mode", "u", xdg_decoration_unstable_v1_types + 0 }, 67 { "unset_mode", "", xdg_decoration_unstable_v1_types + 0 }, 68 }; 69 70 static const struct wl_message zxdg_toplevel_decoration_v1_events[] = { 71 { "configure", "u", xdg_decoration_unstable_v1_types + 0 }, 72 }; 73 74 WL_PRIVATE const struct wl_interface zxdg_toplevel_decoration_v1_interface = { 75 "zxdg_toplevel_decoration_v1", 1, 76 3, zxdg_toplevel_decoration_v1_requests, 77 1, zxdg_toplevel_decoration_v1_events, 78 }; 79