wayland_xdg_decoration.c raw

   1  // +build linux,!android,!nowayland freebsd
   2  
   3  /* Generated by wayland-scanner 1.19.0 */
   4  
   5  /*
   6   * Copyright © 2018 Simon Ser
   7   *
   8   * Permission is hereby granted, free of charge, to any person obtaining a
   9   * copy of this software and associated documentation files (the "Software"),
  10   * to deal in the Software without restriction, including without limitation
  11   * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  12   * and/or sell copies of the Software, and to permit persons to whom the
  13   * Software is furnished to do so, subject to the following conditions:
  14   *
  15   * The above copyright notice and this permission notice (including the next
  16   * paragraph) shall be included in all copies or substantial portions of the
  17   * Software.
  18   *
  19   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  20   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  21   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
  22   * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  23   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  24   * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  25   * DEALINGS IN THE 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 xdg_toplevel_interface;
  43  extern const struct wl_interface zxdg_toplevel_decoration_v1_interface;
  44  
  45  static const struct wl_interface *xdg_decoration_unstable_v1_types[] = {
  46  	NULL,
  47  	&zxdg_toplevel_decoration_v1_interface,
  48  	&xdg_toplevel_interface,
  49  };
  50  
  51  static const struct wl_message zxdg_decoration_manager_v1_requests[] = {
  52  	{ "destroy", "", xdg_decoration_unstable_v1_types + 0 },
  53  	{ "get_toplevel_decoration", "no", xdg_decoration_unstable_v1_types + 1 },
  54  };
  55  
  56  WL_PRIVATE const struct wl_interface zxdg_decoration_manager_v1_interface = {
  57  	"zxdg_decoration_manager_v1", 1,
  58  	2, zxdg_decoration_manager_v1_requests,
  59  	0, NULL,
  60  };
  61  
  62  static const struct wl_message zxdg_toplevel_decoration_v1_requests[] = {
  63  	{ "destroy", "", xdg_decoration_unstable_v1_types + 0 },
  64  	{ "set_mode", "u", xdg_decoration_unstable_v1_types + 0 },
  65  	{ "unset_mode", "", xdg_decoration_unstable_v1_types + 0 },
  66  };
  67  
  68  static const struct wl_message zxdg_toplevel_decoration_v1_events[] = {
  69  	{ "configure", "u", xdg_decoration_unstable_v1_types + 0 },
  70  };
  71  
  72  WL_PRIVATE const struct wl_interface zxdg_toplevel_decoration_v1_interface = {
  73  	"zxdg_toplevel_decoration_v1", 1,
  74  	3, zxdg_toplevel_decoration_v1_requests,
  75  	1, zxdg_toplevel_decoration_v1_events,
  76  };
  77  
  78