mandelbrot-wl

mandelbrot-wl.git
git clone git://git.lenczewski.org/mandelbrot-wl.git
Log | Files | Refs

xdg-shell.c (5701B)


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