1 #ifndef __DALI_WL_TYPES_H__
2 #define __DALI_WL_TYPES_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <wayland-client.h> // from wayland-devel package
24 #ifdef WAYLAND_EXTENSIONS_SUPPORTED
26 #include <wayland-extension/xdg-shell-unstable-v6-client-protocol.h>
28 #include <wayland-extension/xdg-shell-client-protocol.h> // from wayland
30 #include <wayland-extension/text-client-protocol.h>
36 typedef ::wl_display WlDisplay;
37 typedef ::wl_surface WlSurface;
38 typedef ::wl_array WlArray;
39 typedef ::wl_output WlOutput;
41 typedef ::wl_shell WlShell;
42 typedef ::wl_shell_surface WlShellSurface;
44 typedef ::wl_registry WlRegistry;
45 typedef ::wl_compositor WlCompositor;
46 typedef ::wl_seat WlSeat;
47 typedef ::wl_pointer WlPointer;
48 typedef ::wl_keyboard WlKeyboard;
49 typedef ::wl_touch WlTouch;
51 typedef ::wl_seat_listener WlSeatListener;
52 typedef ::wl_pointer_listener WlPointerListener;
53 typedef ::wl_touch_listener WlTouchListener;
54 typedef ::wl_keyboard_listener WlKeyboardListener;
56 #ifdef WAYLAND_EXTENSIONS_SUPPORTED
58 typedef ::zxdg_shell_v6 WlXdgShell;
59 typedef ::zxdg_surface_v6 WlXdgShellSurface;
61 typedef ::xdg_shell WlXdgShell;
62 typedef ::xdg_surface WlXdgShellSurface;
65 typedef ::wl_text_input_manager WlTextInputManager; // See Tizen wayland-extensions/protocol/text.xml
66 typedef ::wl_text_input WlTextInput; // See Tizen wayland-extensions/protocol/text.xml
67 typedef ::wl_text_input_listener WlTextInputListener; // See Tizen wayland-extensions/protocol/text.xml
70 typedef void* WlXdgShell;
71 typedef void* WlXdgShellSurface;
72 typedef void* WlTextInputManager;
73 typedef void* WlTextInput;
74 typedef void* WlTextInputListener;
80 #endif /* __DALI_WL_TYPES_H__ */