2023-08-03 17:30:57 +02:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// SPDX-FileCopyrightText: 2013-2016 Collabora, Ltd.
|
|
|
|
// SPDX-FileCopyrightText: 2023 The Ebitengine Authors
|
2023-07-20 18:27:56 +02:00
|
|
|
|
2023-08-03 17:30:57 +02:00
|
|
|
//go:build (freebsd || linux || netbsd || openbsd) && wayland
|
2023-07-05 03:51:55 +02:00
|
|
|
|
2023-08-03 17:30:57 +02:00
|
|
|
// Generated by wayland-scanner 1.18.0
|
2023-07-05 03:51:55 +02:00
|
|
|
|
|
|
|
#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 wl_surface_interface;
|
|
|
|
extern const struct wl_interface wp_viewport_interface;
|
|
|
|
|
|
|
|
static const struct wl_interface *viewporter_types[] = {
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
&wp_viewport_interface,
|
|
|
|
&wl_surface_interface,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct wl_message wp_viewporter_requests[] = {
|
|
|
|
{ "destroy", "", viewporter_types + 0 },
|
|
|
|
{ "get_viewport", "no", viewporter_types + 4 },
|
|
|
|
};
|
|
|
|
|
|
|
|
WL_PRIVATE const struct wl_interface wp_viewporter_interface = {
|
|
|
|
"wp_viewporter", 1,
|
|
|
|
2, wp_viewporter_requests,
|
|
|
|
0, NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct wl_message wp_viewport_requests[] = {
|
|
|
|
{ "destroy", "", viewporter_types + 0 },
|
|
|
|
{ "set_source", "ffff", viewporter_types + 0 },
|
|
|
|
{ "set_destination", "ii", viewporter_types + 0 },
|
|
|
|
};
|
|
|
|
|
|
|
|
WL_PRIVATE const struct wl_interface wp_viewport_interface = {
|
|
|
|
"wp_viewport", 1,
|
|
|
|
3, wp_viewport_requests,
|
|
|
|
0, NULL,
|
|
|
|
};
|
|
|
|
|