wayland_xdg_shell.c raw

   1  // +build linux,!android,!nowayland freebsd
   2  
   3  /* Generated by wayland-scanner 1.19.0 */
   4  
   5  /*
   6   * Copyright © 2008-2013 Kristian Høgsberg
   7   * Copyright © 2013      Rafael Antognolli
   8   * Copyright © 2013      Jasper St. Pierre
   9   * Copyright © 2010-2013 Intel Corporation
  10   * Copyright © 2015-2017 Samsung Electronics Co., Ltd
  11   * Copyright © 2015-2017 Red Hat Inc.
  12   *
  13   * Permission is hereby granted, free of charge, to any person obtaining a
  14   * copy of this software and associated documentation files (the "Software"),
  15   * to deal in the Software without restriction, including without limitation
  16   * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  17   * and/or sell copies of the Software, and to permit persons to whom the
  18   * Software is furnished to do so, subject to the following conditions:
  19   *
  20   * The above copyright notice and this permission notice (including the next
  21   * paragraph) shall be included in all copies or substantial portions of the
  22   * Software.
  23   *
  24   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  25   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  26   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
  27   * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  28   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  29   * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  30   * DEALINGS IN THE SOFTWARE.
  31   */
  32  
  33  #include <stdlib.h>
  34  #include <stdint.h>
  35  #include "wayland-util.h"
  36  
  37  #ifndef __has_attribute
  38  # define __has_attribute(x) 0  /* Compatibility with non-clang compilers. */
  39  #endif
  40  
  41  #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
  42  #define WL_PRIVATE __attribute__ ((visibility("hidden")))
  43  #else
  44  #define WL_PRIVATE
  45  #endif
  46  
  47  extern const struct wl_interface wl_output_interface;
  48  extern const struct wl_interface wl_seat_interface;
  49  extern const struct wl_interface wl_surface_interface;
  50  extern const struct wl_interface xdg_popup_interface;
  51  extern const struct wl_interface xdg_positioner_interface;
  52  extern const struct wl_interface xdg_surface_interface;
  53  extern const struct wl_interface xdg_toplevel_interface;
  54  
  55  static const struct wl_interface *xdg_shell_types[] = {
  56  	NULL,
  57  	NULL,
  58  	NULL,
  59  	NULL,
  60  	&xdg_positioner_interface,
  61  	&xdg_surface_interface,
  62  	&wl_surface_interface,
  63  	&xdg_toplevel_interface,
  64  	&xdg_popup_interface,
  65  	&xdg_surface_interface,
  66  	&xdg_positioner_interface,
  67  	&xdg_toplevel_interface,
  68  	&wl_seat_interface,
  69  	NULL,
  70  	NULL,
  71  	NULL,
  72  	&wl_seat_interface,
  73  	NULL,
  74  	&wl_seat_interface,
  75  	NULL,
  76  	NULL,
  77  	&wl_output_interface,
  78  	&wl_seat_interface,
  79  	NULL,
  80  	&xdg_positioner_interface,
  81  	NULL,
  82  };
  83  
  84  static const struct wl_message xdg_wm_base_requests[] = {
  85  	{ "destroy", "", xdg_shell_types + 0 },
  86  	{ "create_positioner", "n", xdg_shell_types + 4 },
  87  	{ "get_xdg_surface", "no", xdg_shell_types + 5 },
  88  	{ "pong", "u", xdg_shell_types + 0 },
  89  };
  90  
  91  static const struct wl_message xdg_wm_base_events[] = {
  92  	{ "ping", "u", xdg_shell_types + 0 },
  93  };
  94  
  95  WL_PRIVATE const struct wl_interface xdg_wm_base_interface = {
  96  	"xdg_wm_base", 3,
  97  	4, xdg_wm_base_requests,
  98  	1, xdg_wm_base_events,
  99  };
 100  
 101  static const struct wl_message xdg_positioner_requests[] = {
 102  	{ "destroy", "", xdg_shell_types + 0 },
 103  	{ "set_size", "ii", xdg_shell_types + 0 },
 104  	{ "set_anchor_rect", "iiii", xdg_shell_types + 0 },
 105  	{ "set_anchor", "u", xdg_shell_types + 0 },
 106  	{ "set_gravity", "u", xdg_shell_types + 0 },
 107  	{ "set_constraint_adjustment", "u", xdg_shell_types + 0 },
 108  	{ "set_offset", "ii", xdg_shell_types + 0 },
 109  	{ "set_reactive", "3", xdg_shell_types + 0 },
 110  	{ "set_parent_size", "3ii", xdg_shell_types + 0 },
 111  	{ "set_parent_configure", "3u", xdg_shell_types + 0 },
 112  };
 113  
 114  WL_PRIVATE const struct wl_interface xdg_positioner_interface = {
 115  	"xdg_positioner", 3,
 116  	10, xdg_positioner_requests,
 117  	0, NULL,
 118  };
 119  
 120  static const struct wl_message xdg_surface_requests[] = {
 121  	{ "destroy", "", xdg_shell_types + 0 },
 122  	{ "get_toplevel", "n", xdg_shell_types + 7 },
 123  	{ "get_popup", "n?oo", xdg_shell_types + 8 },
 124  	{ "set_window_geometry", "iiii", xdg_shell_types + 0 },
 125  	{ "ack_configure", "u", xdg_shell_types + 0 },
 126  };
 127  
 128  static const struct wl_message xdg_surface_events[] = {
 129  	{ "configure", "u", xdg_shell_types + 0 },
 130  };
 131  
 132  WL_PRIVATE const struct wl_interface xdg_surface_interface = {
 133  	"xdg_surface", 3,
 134  	5, xdg_surface_requests,
 135  	1, xdg_surface_events,
 136  };
 137  
 138  static const struct wl_message xdg_toplevel_requests[] = {
 139  	{ "destroy", "", xdg_shell_types + 0 },
 140  	{ "set_parent", "?o", xdg_shell_types + 11 },
 141  	{ "set_title", "s", xdg_shell_types + 0 },
 142  	{ "set_app_id", "s", xdg_shell_types + 0 },
 143  	{ "show_window_menu", "ouii", xdg_shell_types + 12 },
 144  	{ "move", "ou", xdg_shell_types + 16 },
 145  	{ "resize", "ouu", xdg_shell_types + 18 },
 146  	{ "set_max_size", "ii", xdg_shell_types + 0 },
 147  	{ "set_min_size", "ii", xdg_shell_types + 0 },
 148  	{ "set_maximized", "", xdg_shell_types + 0 },
 149  	{ "unset_maximized", "", xdg_shell_types + 0 },
 150  	{ "set_fullscreen", "?o", xdg_shell_types + 21 },
 151  	{ "unset_fullscreen", "", xdg_shell_types + 0 },
 152  	{ "set_minimized", "", xdg_shell_types + 0 },
 153  };
 154  
 155  static const struct wl_message xdg_toplevel_events[] = {
 156  	{ "configure", "iia", xdg_shell_types + 0 },
 157  	{ "close", "", xdg_shell_types + 0 },
 158  };
 159  
 160  WL_PRIVATE const struct wl_interface xdg_toplevel_interface = {
 161  	"xdg_toplevel", 3,
 162  	14, xdg_toplevel_requests,
 163  	2, xdg_toplevel_events,
 164  };
 165  
 166  static const struct wl_message xdg_popup_requests[] = {
 167  	{ "destroy", "", xdg_shell_types + 0 },
 168  	{ "grab", "ou", xdg_shell_types + 22 },
 169  	{ "reposition", "3ou", xdg_shell_types + 24 },
 170  };
 171  
 172  static const struct wl_message xdg_popup_events[] = {
 173  	{ "configure", "iiii", xdg_shell_types + 0 },
 174  	{ "popup_done", "", xdg_shell_types + 0 },
 175  	{ "repositioned", "3u", xdg_shell_types + 0 },
 176  };
 177  
 178  WL_PRIVATE const struct wl_interface xdg_popup_interface = {
 179  	"xdg_popup", 3,
 180  	3, xdg_popup_requests,
 181  	3, xdg_popup_events,
 182  };
 183  
 184