Kristian Høgsberg | fe831a7 | 2008-12-21 21:50:23 -0500 | [diff] [blame] | 1 | /* |
| 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 | |
Kristian Høgsberg | da6c6b1 | 2010-06-10 13:48:44 -0400 | [diff] [blame] | 26 | #ifdef __cplusplus |
| 27 | extern "C" { |
| 28 | #endif |
| 29 | |
Kristian Høgsberg | fe831a7 | 2008-12-21 21:50:23 -0500 | [diff] [blame] | 30 | #include <stdint.h> |
| 31 | |
Kristian Høgsberg | fe831a7 | 2008-12-21 21:50:23 -0500 | [diff] [blame] | 32 | #define WL_DISPLAY_INVALID_OBJECT 0 |
| 33 | #define WL_DISPLAY_INVALID_METHOD 1 |
| 34 | #define WL_DISPLAY_NO_MEMORY 2 |
| 35 | #define WL_DISPLAY_GLOBAL 3 |
Kristian Høgsberg | 97079ad | 2008-12-21 22:45:33 -0500 | [diff] [blame] | 36 | #define WL_DISPLAY_RANGE 4 |
Kristian Høgsberg | fe831a7 | 2008-12-21 21:50:23 -0500 | [diff] [blame] | 37 | |
| 38 | extern const struct wl_interface wl_display_interface; |
| 39 | |
| 40 | |
| 41 | #define WL_COMPOSITOR_CREATE_SURFACE 0 |
| 42 | #define WL_COMPOSITOR_COMMIT 1 |
| 43 | |
Kristian Høgsberg | 478d926 | 2010-06-08 20:34:11 -0400 | [diff] [blame] | 44 | #define WL_COMPOSITOR_DEVICE 0 |
| 45 | #define WL_COMPOSITOR_ACKNOWLEDGE 1 |
| 46 | #define WL_COMPOSITOR_FRAME 2 |
Kristian Høgsberg | fe831a7 | 2008-12-21 21:50:23 -0500 | [diff] [blame] | 47 | |
| 48 | extern const struct wl_interface wl_compositor_interface; |
| 49 | |
| 50 | |
| 51 | #define WL_SURFACE_DESTROY 0 |
| 52 | #define WL_SURFACE_ATTACH 1 |
| 53 | #define WL_SURFACE_MAP 2 |
Kristian Høgsberg | 478d926 | 2010-06-08 20:34:11 -0400 | [diff] [blame] | 54 | #define WL_SURFACE_DAMAGE 3 |
Kristian Høgsberg | fe831a7 | 2008-12-21 21:50:23 -0500 | [diff] [blame] | 55 | |
| 56 | extern const struct wl_interface wl_surface_interface; |
| 57 | |
| 58 | |
Kristian Høgsberg | db6c2f3 | 2009-02-22 21:51:24 -0500 | [diff] [blame] | 59 | #define WL_INPUT_MOTION 0 |
| 60 | #define WL_INPUT_BUTTON 1 |
| 61 | #define WL_INPUT_KEY 2 |
| 62 | #define WL_INPUT_POINTER_FOCUS 3 |
| 63 | #define WL_INPUT_KEYBOARD_FOCUS 4 |
Kristian Høgsberg | fe831a7 | 2008-12-21 21:50:23 -0500 | [diff] [blame] | 64 | |
| 65 | extern const struct wl_interface wl_input_device_interface; |
| 66 | |
Kristian Høgsberg | ee02ca6 | 2008-12-21 23:37:12 -0500 | [diff] [blame] | 67 | |
Kristian Høgsberg | 12ea62e | 2008-12-22 16:37:07 -0500 | [diff] [blame] | 68 | #define WL_OUTPUT_GEOMETRY 0 |
Kristian Høgsberg | ee02ca6 | 2008-12-21 23:37:12 -0500 | [diff] [blame] | 69 | |
| 70 | extern const struct wl_interface wl_output_interface; |
| 71 | |
Kristian Høgsberg | 12ea62e | 2008-12-22 16:37:07 -0500 | [diff] [blame] | 72 | |
| 73 | extern const struct wl_interface wl_visual_interface; |
| 74 | |
Kristian Høgsberg | da6c6b1 | 2010-06-10 13:48:44 -0400 | [diff] [blame] | 75 | #ifdef __cplusplus |
| 76 | } |
| 77 | #endif |
| 78 | |
Kristian Høgsberg | fe831a7 | 2008-12-21 21:50:23 -0500 | [diff] [blame] | 79 | #endif |