dotfiles

my shiny new dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

wlr-layer-shell-unstable-v1-protocol.c (3418B)


      1 /* Generated by wayland-scanner 1.22.0 */
      2 
      3 /*
      4  * Copyright © 2017 Drew DeVault
      5  *
      6  * Permission to use, copy, modify, distribute, and sell this
      7  * software and its documentation for any purpose is hereby granted
      8  * without fee, provided that the above copyright notice appear in
      9  * all copies and that both that copyright notice and this permission
     10  * notice appear in supporting documentation, and that the name of
     11  * the copyright holders not be used in advertising or publicity
     12  * pertaining to distribution of the software without specific,
     13  * written prior permission.  The copyright holders make no
     14  * representations about the suitability of this software for any
     15  * purpose.  It is provided "as is" without express or implied
     16  * warranty.
     17  *
     18  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
     19  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
     20  * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
     21  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     22  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
     23  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     24  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
     25  * THIS 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 wl_output_interface;
     43 extern const struct wl_interface wl_surface_interface;
     44 extern const struct wl_interface xdg_popup_interface;
     45 extern const struct wl_interface zwlr_layer_surface_v1_interface;
     46 
     47 static const struct wl_interface *wlr_layer_shell_unstable_v1_types[] = {
     48 	NULL,
     49 	NULL,
     50 	NULL,
     51 	NULL,
     52 	&zwlr_layer_surface_v1_interface,
     53 	&wl_surface_interface,
     54 	&wl_output_interface,
     55 	NULL,
     56 	NULL,
     57 	&xdg_popup_interface,
     58 };
     59 
     60 static const struct wl_message zwlr_layer_shell_v1_requests[] = {
     61 	{ "get_layer_surface", "no?ous", wlr_layer_shell_unstable_v1_types + 4 },
     62 	{ "destroy", "3", wlr_layer_shell_unstable_v1_types + 0 },
     63 };
     64 
     65 WL_PRIVATE const struct wl_interface zwlr_layer_shell_v1_interface = {
     66 	"zwlr_layer_shell_v1", 4,
     67 	2, zwlr_layer_shell_v1_requests,
     68 	0, NULL,
     69 };
     70 
     71 static const struct wl_message zwlr_layer_surface_v1_requests[] = {
     72 	{ "set_size", "uu", wlr_layer_shell_unstable_v1_types + 0 },
     73 	{ "set_anchor", "u", wlr_layer_shell_unstable_v1_types + 0 },
     74 	{ "set_exclusive_zone", "i", wlr_layer_shell_unstable_v1_types + 0 },
     75 	{ "set_margin", "iiii", wlr_layer_shell_unstable_v1_types + 0 },
     76 	{ "set_keyboard_interactivity", "u", wlr_layer_shell_unstable_v1_types + 0 },
     77 	{ "get_popup", "o", wlr_layer_shell_unstable_v1_types + 9 },
     78 	{ "ack_configure", "u", wlr_layer_shell_unstable_v1_types + 0 },
     79 	{ "destroy", "", wlr_layer_shell_unstable_v1_types + 0 },
     80 	{ "set_layer", "2u", wlr_layer_shell_unstable_v1_types + 0 },
     81 };
     82 
     83 static const struct wl_message zwlr_layer_surface_v1_events[] = {
     84 	{ "configure", "uuu", wlr_layer_shell_unstable_v1_types + 0 },
     85 	{ "closed", "", wlr_layer_shell_unstable_v1_types + 0 },
     86 };
     87 
     88 WL_PRIVATE const struct wl_interface zwlr_layer_surface_v1_interface = {
     89 	"zwlr_layer_surface_v1", 4,
     90 	9, zwlr_layer_surface_v1_requests,
     91 	2, zwlr_layer_surface_v1_events,
     92 };
     93