tools

various tools I have been using throughout the years
Log | Files | Refs | README | LICENSE

river-status.c (3424B)


      1 /* Generated by wayland-scanner 1.24.0 */
      2 
      3 /*
      4  * Copyright 2020 The River Developers
      5  *
      6  * Permission to use, copy, modify, and/or distribute this software for any
      7  * purpose with or without fee is hereby granted, provided that the above
      8  * copyright notice and this permission notice appear in all copies.
      9  *
     10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
     11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
     13  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
     15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
     16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     17  */
     18 
     19 #include <stdbool.h>
     20 #include <stdlib.h>
     21 #include <stdint.h>
     22 #include "wayland-util.h"
     23 
     24 #ifndef __has_attribute
     25 # define __has_attribute(x) 0  /* Compatibility with non-clang compilers. */
     26 #endif
     27 
     28 #if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
     29 #define WL_PRIVATE __attribute__ ((visibility("hidden")))
     30 #else
     31 #define WL_PRIVATE
     32 #endif
     33 
     34 extern const struct wl_interface wl_output_interface;
     35 extern const struct wl_interface wl_seat_interface;
     36 extern const struct wl_interface zriver_output_status_v1_interface;
     37 extern const struct wl_interface zriver_seat_status_v1_interface;
     38 
     39 static const struct wl_interface *river_status_unstable_v1_types[] = {
     40 	NULL,
     41 	&zriver_output_status_v1_interface,
     42 	&wl_output_interface,
     43 	&zriver_seat_status_v1_interface,
     44 	&wl_seat_interface,
     45 	&wl_output_interface,
     46 	&wl_output_interface,
     47 };
     48 
     49 static const struct wl_message zriver_status_manager_v1_requests[] = {
     50 	{ "destroy", "", river_status_unstable_v1_types + 0 },
     51 	{ "get_river_output_status", "no", river_status_unstable_v1_types + 1 },
     52 	{ "get_river_seat_status", "no", river_status_unstable_v1_types + 3 },
     53 };
     54 
     55 WL_PRIVATE const struct wl_interface zriver_status_manager_v1_interface = {
     56 	"zriver_status_manager_v1", 4,
     57 	3, zriver_status_manager_v1_requests,
     58 	0, NULL,
     59 };
     60 
     61 static const struct wl_message zriver_output_status_v1_requests[] = {
     62 	{ "destroy", "", river_status_unstable_v1_types + 0 },
     63 };
     64 
     65 static const struct wl_message zriver_output_status_v1_events[] = {
     66 	{ "focused_tags", "u", river_status_unstable_v1_types + 0 },
     67 	{ "view_tags", "a", river_status_unstable_v1_types + 0 },
     68 	{ "urgent_tags", "2u", river_status_unstable_v1_types + 0 },
     69 	{ "layout_name", "4s", river_status_unstable_v1_types + 0 },
     70 	{ "layout_name_clear", "4", river_status_unstable_v1_types + 0 },
     71 };
     72 
     73 WL_PRIVATE const struct wl_interface zriver_output_status_v1_interface = {
     74 	"zriver_output_status_v1", 4,
     75 	1, zriver_output_status_v1_requests,
     76 	5, zriver_output_status_v1_events,
     77 };
     78 
     79 static const struct wl_message zriver_seat_status_v1_requests[] = {
     80 	{ "destroy", "", river_status_unstable_v1_types + 0 },
     81 };
     82 
     83 static const struct wl_message zriver_seat_status_v1_events[] = {
     84 	{ "focused_output", "o", river_status_unstable_v1_types + 5 },
     85 	{ "unfocused_output", "o", river_status_unstable_v1_types + 6 },
     86 	{ "focused_view", "s", river_status_unstable_v1_types + 0 },
     87 	{ "mode", "3s", river_status_unstable_v1_types + 0 },
     88 };
     89 
     90 WL_PRIVATE const struct wl_interface zriver_seat_status_v1_interface = {
     91 	"zriver_seat_status_v1", 3,
     92 	1, zriver_seat_status_v1_requests,
     93 	4, zriver_seat_status_v1_events,
     94 };
     95