/* Generated by wayland-scanner 1.26.0 */

/*
 * SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd.
 * SPDX-License-Identifier: MIT
 */

#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 treeland_exported_surface_v1_interface;
extern const struct wl_interface treeland_remote_subsurface_v1_interface;
extern const struct wl_interface wl_surface_interface;

static const struct wl_interface *treeland_remote_subsurface_unstable_v1_types[] = {
	NULL,
	NULL,
	&treeland_exported_surface_v1_interface,
	&wl_surface_interface,
	&treeland_remote_subsurface_v1_interface,
	NULL,
};

static const struct wl_message treeland_subsurface_manager_v1_requests[] = {
	{ "destroy", "", treeland_remote_subsurface_unstable_v1_types + 0 },
	{ "export_surface", "no", treeland_remote_subsurface_unstable_v1_types + 2 },
};

WL_PRIVATE const struct wl_interface treeland_subsurface_manager_v1_interface = {
	"treeland_subsurface_manager_v1", 1,
	2, treeland_subsurface_manager_v1_requests,
	0, NULL,
};

static const struct wl_message treeland_exported_surface_v1_requests[] = {
	{ "destroy", "", treeland_remote_subsurface_unstable_v1_types + 0 },
	{ "create_remote_subsurface", "ns", treeland_remote_subsurface_unstable_v1_types + 4 },
};

static const struct wl_message treeland_exported_surface_v1_events[] = {
	{ "surface_token", "s", treeland_remote_subsurface_unstable_v1_types + 0 },
	{ "parent_rejected", "us", treeland_remote_subsurface_unstable_v1_types + 0 },
};

WL_PRIVATE const struct wl_interface treeland_exported_surface_v1_interface = {
	"treeland_exported_surface_v1", 1,
	2, treeland_exported_surface_v1_requests,
	2, treeland_exported_surface_v1_events,
};

static const struct wl_message treeland_remote_subsurface_v1_requests[] = {
	{ "destroy", "", treeland_remote_subsurface_unstable_v1_types + 0 },
	{ "set_position", "ii", treeland_remote_subsurface_unstable_v1_types + 0 },
	{ "place_above", "s", treeland_remote_subsurface_unstable_v1_types + 0 },
	{ "place_below", "s", treeland_remote_subsurface_unstable_v1_types + 0 },
};

static const struct wl_message treeland_remote_subsurface_v1_events[] = {
	{ "invalid_sibling", "s", treeland_remote_subsurface_unstable_v1_types + 0 },
};

WL_PRIVATE const struct wl_interface treeland_remote_subsurface_v1_interface = {
	"treeland_remote_subsurface_v1", 1,
	4, treeland_remote_subsurface_v1_requests,
	1, treeland_remote_subsurface_v1_events,
};

