blob: 2b87a141fb807ca9f4f7be0d1b762d43c7cf3c77 [file] [log] [blame]
Kristian Høgsbergfe831a72008-12-21 21:50:23 -05001/*
2 * Copyright © 2008 Kristian Høgsberg
3 *
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.
13 *
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
20 * OF THIS SOFTWARE.
21 */
22
23#ifndef WAYLAND_PROTOCOL_H
24#define WAYLAND_PROTOCOL_H
25
26#include <stdint.h>
27
Kristian Høgsbergfe831a72008-12-21 21:50:23 -050028#define WL_DISPLAY_INVALID_OBJECT 0
29#define WL_DISPLAY_INVALID_METHOD 1
30#define WL_DISPLAY_NO_MEMORY 2
31#define WL_DISPLAY_GLOBAL 3
Kristian Høgsberg97079ad2008-12-21 22:45:33 -050032#define WL_DISPLAY_RANGE 4
Kristian Høgsbergfe831a72008-12-21 21:50:23 -050033
34extern const struct wl_interface wl_display_interface;
35
36
37#define WL_COMPOSITOR_CREATE_SURFACE 0
38#define WL_COMPOSITOR_COMMIT 1
39
40#define WL_COMPOSITOR_ACKNOWLEDGE 0
41#define WL_COMPOSITOR_FRAME 1
42
43extern const struct wl_interface wl_compositor_interface;
44
45
46#define WL_SURFACE_DESTROY 0
47#define WL_SURFACE_ATTACH 1
48#define WL_SURFACE_MAP 2
49#define WL_SURFACE_COPY 3
50#define WL_SURFACE_DAMAGE 4
51
52extern const struct wl_interface wl_surface_interface;
53
54
Kristian Høgsbergdb6c2f32009-02-22 21:51:24 -050055#define WL_INPUT_MOTION 0
56#define WL_INPUT_BUTTON 1
57#define WL_INPUT_KEY 2
58#define WL_INPUT_POINTER_FOCUS 3
59#define WL_INPUT_KEYBOARD_FOCUS 4
Kristian Høgsbergfe831a72008-12-21 21:50:23 -050060
61extern const struct wl_interface wl_input_device_interface;
62
Kristian Høgsbergee02ca62008-12-21 23:37:12 -050063
Kristian Høgsberg12ea62e2008-12-22 16:37:07 -050064#define WL_OUTPUT_GEOMETRY 0
Kristian Høgsbergee02ca62008-12-21 23:37:12 -050065
66extern const struct wl_interface wl_output_interface;
67
Kristian Høgsberg12ea62e2008-12-22 16:37:07 -050068
69extern const struct wl_interface wl_visual_interface;
70
Kristian Høgsbergfe831a72008-12-21 21:50:23 -050071#endif