2 * Copyright © 2008 Kristian Høgsberg
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that copyright
7 * notice and this permission notice appear in supporting documentation, and
8 * that the name of the copyright holders not be used in advertising or
9 * publicity pertaining to distribution of the software without specific,
10 * written prior permission. The copyright holders make no representations
11 * about the suitability of this software for any purpose. It is provided "as
12 * is" without express or implied warranty.
14 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
25 #include "wayland-util.h"
26 #include "wayland-protocol.h"
28 static const struct wl_message display_events[] = {
29 { "invalid_object", "u" },
30 { "invalid_method", "uu" },
36 WL_EXPORT const struct wl_interface wl_display_interface = {
39 ARRAY_LENGTH(display_events), display_events,
43 static const struct wl_message compositor_methods[] = {
44 { "create_surface", "n" },
48 static const struct wl_message compositor_events[] = {
49 { "acknowledge", "uu" },
53 WL_EXPORT const struct wl_interface wl_compositor_interface = {
55 ARRAY_LENGTH(compositor_methods), compositor_methods,
56 ARRAY_LENGTH(compositor_events), compositor_events,
60 static const struct wl_message surface_methods[] = {
62 { "attach", "uuuuo" },
64 { "copy", "iiuuiiii" },
68 WL_EXPORT const struct wl_interface wl_surface_interface = {
70 ARRAY_LENGTH(surface_methods), surface_methods,
75 static const struct wl_message input_device_events[] = {
77 { "button", "uuiiii" },
81 WL_EXPORT const struct wl_interface wl_input_device_interface = {
84 ARRAY_LENGTH(input_device_events), input_device_events,
88 static const struct wl_message output_events[] = {
92 WL_EXPORT const struct wl_interface wl_output_interface = {
95 ARRAY_LENGTH(output_events), output_events,
98 WL_EXPORT const struct wl_interface wl_visual_interface = {