/* Generated by wayland-scanner 1.26.0 */

/*
 * Copyright © 2024 Brian Tarricone <brian@tarricone.org>
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation files
 * (the "Software"), to deal in the Software without restriction,
 * including without limitation the rights to use, copy, modify, merge,
 * publish, distribute, sublicense, and/or sell copies of the Software,
 * and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice (including the
 * next paragraph) shall be included in all copies or substantial
 * portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
#include "wayland-util.h"

#ifndef __has_attribute
# define __has_attribute(x) 0  /* Compatibility with non-clang compilers. */
#endif

#if (__has_attribute(visibility) || defined(__GNUC__) && __GNUC__ >= 4)
#define WL_PRIVATE __attribute__ ((visibility("hidden")))
#else
#define WL_PRIVATE
#endif

extern const struct wl_interface ext_workspace_handle_v1_interface;
extern const struct wl_interface wl_output_interface;
extern const struct wl_interface wl_seat_interface;
extern const struct wl_interface xfce_foreign_toplevel_handle_v1_interface;
extern const struct wl_interface xfce_foreign_toplevel_icon_pixels_v1_interface;
extern const struct wl_interface zwlr_foreign_toplevel_handle_v1_interface;

static const struct wl_interface *xfce_foreign_toplevel_management_private_v1_types[] = {
	NULL,
	NULL,
	NULL,
	NULL,
	&xfce_foreign_toplevel_handle_v1_interface,
	&zwlr_foreign_toplevel_handle_v1_interface,
	&wl_seat_interface,
	&wl_seat_interface,
	&wl_seat_interface,
	&wl_output_interface,
	&ext_workspace_handle_v1_interface,
	&xfce_foreign_toplevel_icon_pixels_v1_interface,
	NULL,
	NULL,
	&ext_workspace_handle_v1_interface,
	&ext_workspace_handle_v1_interface,
};

static const struct wl_message xfce_foreign_toplevel_manager_private_v1_requests[] = {
	{ "get_xfce_foreign_toplevel_handle", "no", xfce_foreign_toplevel_management_private_v1_types + 4 },
	{ "destroy", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
};

WL_PRIVATE const struct wl_interface xfce_foreign_toplevel_manager_private_v1_interface = {
	"xfce_foreign_toplevel_manager_private_v1", 1,
	2, xfce_foreign_toplevel_manager_private_v1_requests,
	0, NULL,
};

static const struct wl_message xfce_foreign_toplevel_handle_v1_requests[] = {
	{ "set_shaded", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "unset_shaded", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "set_sticky", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "unset_sticky", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "set_above", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "unset_above", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "set_below", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "unset_below", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "highlight", "o", xfce_foreign_toplevel_management_private_v1_types + 6 },
	{ "unhighlight", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "move", "o", xfce_foreign_toplevel_management_private_v1_types + 7 },
	{ "resize", "o", xfce_foreign_toplevel_management_private_v1_types + 8 },
	{ "move_to_output", "o", xfce_foreign_toplevel_management_private_v1_types + 9 },
	{ "move_to_workspace", "o", xfce_foreign_toplevel_management_private_v1_types + 10 },
	{ "get_icon_pixels", "nuu", xfce_foreign_toplevel_management_private_v1_types + 11 },
	{ "destroy", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
};

static const struct wl_message xfce_foreign_toplevel_handle_v1_events[] = {
	{ "state", "a", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "icon_name", "s", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "icon_size", "uu", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "no_icon", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "workspace_enter", "o", xfce_foreign_toplevel_management_private_v1_types + 14 },
	{ "workspace_leave", "o", xfce_foreign_toplevel_management_private_v1_types + 15 },
};

WL_PRIVATE const struct wl_interface xfce_foreign_toplevel_handle_v1_interface = {
	"xfce_foreign_toplevel_handle_v1", 1,
	16, xfce_foreign_toplevel_handle_v1_requests,
	6, xfce_foreign_toplevel_handle_v1_events,
};

static const struct wl_message xfce_foreign_toplevel_icon_pixels_v1_requests[] = {
	{ "destroy", "", xfce_foreign_toplevel_management_private_v1_types + 0 },
};

static const struct wl_message xfce_foreign_toplevel_icon_pixels_v1_events[] = {
	{ "pixels", "huuu", xfce_foreign_toplevel_management_private_v1_types + 0 },
	{ "failed", "u", xfce_foreign_toplevel_management_private_v1_types + 0 },
};

WL_PRIVATE const struct wl_interface xfce_foreign_toplevel_icon_pixels_v1_interface = {
	"xfce_foreign_toplevel_icon_pixels_v1", 1,
	1, xfce_foreign_toplevel_icon_pixels_v1_requests,
	2, xfce_foreign_toplevel_icon_pixels_v1_events,
};

