/* Generated by wayland-scanner 1.20.0 */

/*
 * Copyright (C) 2013 DENSO CORPORATION
 * Copyright (c) 2013 BMW Car IT GmbH
 *
 * 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 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 <stdlib.h>
#include <stdint.h>
#include "wayland-util.h"

extern const struct wl_interface ivi_controller_layer_interface;
extern const struct wl_interface ivi_controller_screen_interface;
extern const struct wl_interface ivi_controller_surface_interface;
extern const struct wl_interface wl_output_interface;

static const struct wl_interface *ivi_controller_types[] = {
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	&ivi_controller_layer_interface,
	&ivi_controller_surface_interface,
	&ivi_controller_surface_interface,
	&wl_output_interface,
	&ivi_controller_layer_interface,
	NULL,
	NULL,
	NULL,
	&ivi_controller_layer_interface,
	NULL,
	&ivi_controller_surface_interface,
	NULL,
	&ivi_controller_screen_interface,
};

static const struct wl_message ivi_controller_surface_requests[] = {
	{ "set_visibility", "u", ivi_controller_types + 0 },
	{ "set_opacity", "f", ivi_controller_types + 0 },
	{ "set_source_rectangle", "iiii", ivi_controller_types + 0 },
	{ "set_destination_rectangle", "iiii", ivi_controller_types + 0 },
	{ "set_configuration", "ii", ivi_controller_types + 0 },
	{ "set_orientation", "i", ivi_controller_types + 0 },
	{ "screenshot", "s", ivi_controller_types + 0 },
	{ "send_stats", "", ivi_controller_types + 0 },
	{ "destroy", "i", ivi_controller_types + 0 },
};

static const struct wl_message ivi_controller_surface_events[] = {
	{ "visibility", "i", ivi_controller_types + 0 },
	{ "opacity", "f", ivi_controller_types + 0 },
	{ "source_rectangle", "iiii", ivi_controller_types + 0 },
	{ "destination_rectangle", "iiii", ivi_controller_types + 0 },
	{ "configuration", "ii", ivi_controller_types + 0 },
	{ "orientation", "i", ivi_controller_types + 0 },
	{ "pixelformat", "i", ivi_controller_types + 0 },
	{ "layer", "?o", ivi_controller_types + 5 },
	{ "stats", "uuuu?s", ivi_controller_types + 0 },
	{ "destroyed", "", ivi_controller_types + 0 },
	{ "content", "i", ivi_controller_types + 0 },
};

WL_EXPORT const struct wl_interface ivi_controller_surface_interface = {
	"ivi_controller_surface", 1,
	9, ivi_controller_surface_requests,
	11, ivi_controller_surface_events,
};

static const struct wl_message ivi_controller_layer_requests[] = {
	{ "set_visibility", "u", ivi_controller_types + 0 },
	{ "set_opacity", "f", ivi_controller_types + 0 },
	{ "set_source_rectangle", "iiii", ivi_controller_types + 0 },
	{ "set_destination_rectangle", "iiii", ivi_controller_types + 0 },
	{ "set_configuration", "ii", ivi_controller_types + 0 },
	{ "set_orientation", "i", ivi_controller_types + 0 },
	{ "screenshot", "s", ivi_controller_types + 0 },
	{ "clear_surfaces", "", ivi_controller_types + 0 },
	{ "add_surface", "o", ivi_controller_types + 6 },
	{ "remove_surface", "o", ivi_controller_types + 7 },
	{ "set_render_order", "a", ivi_controller_types + 0 },
	{ "destroy", "i", ivi_controller_types + 0 },
};

static const struct wl_message ivi_controller_layer_events[] = {
	{ "visibility", "i", ivi_controller_types + 0 },
	{ "opacity", "f", ivi_controller_types + 0 },
	{ "source_rectangle", "iiii", ivi_controller_types + 0 },
	{ "destination_rectangle", "iiii", ivi_controller_types + 0 },
	{ "configuration", "ii", ivi_controller_types + 0 },
	{ "orientation", "i", ivi_controller_types + 0 },
	{ "screen", "?o", ivi_controller_types + 8 },
	{ "destroyed", "", ivi_controller_types + 0 },
};

WL_EXPORT const struct wl_interface ivi_controller_layer_interface = {
	"ivi_controller_layer", 1,
	12, ivi_controller_layer_requests,
	8, ivi_controller_layer_events,
};

static const struct wl_message ivi_controller_screen_requests[] = {
	{ "destroy", "", ivi_controller_types + 0 },
	{ "clear", "", ivi_controller_types + 0 },
	{ "add_layer", "o", ivi_controller_types + 9 },
	{ "screenshot", "s", ivi_controller_types + 0 },
	{ "set_render_order", "a", ivi_controller_types + 0 },
};

WL_EXPORT const struct wl_interface ivi_controller_screen_interface = {
	"ivi_controller_screen", 1,
	5, ivi_controller_screen_requests,
	0, NULL,
};

static const struct wl_message ivi_controller_requests[] = {
	{ "commit_changes", "", ivi_controller_types + 0 },
	{ "layer_create", "uiin", ivi_controller_types + 10 },
	{ "surface_create", "un", ivi_controller_types + 14 },
};

static const struct wl_message ivi_controller_events[] = {
	{ "screen", "un", ivi_controller_types + 16 },
	{ "layer", "u", ivi_controller_types + 0 },
	{ "surface", "u", ivi_controller_types + 0 },
	{ "error", "iii?s", ivi_controller_types + 0 },
};

WL_EXPORT const struct wl_interface ivi_controller_interface = {
	"ivi_controller", 1,
	3, ivi_controller_requests,
	4, ivi_controller_events,
};

