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
25 #include <wayland-extension/xdg-shell-client-protocol.h> // from wayland
26 #include <wayland-extension/text-client-protocol.h>
32 typedef ::wl_display WlDisplay;
33 typedef ::wl_surface WlSurface;
34 typedef ::wl_array WlArray;
35 typedef ::wl_output WlOutput;
37 typedef ::wl_shell WlShell;
38 typedef ::wl_shell_surface WlShellSurface;
40 typedef ::wl_registry WlRegistry;
41 typedef ::wl_compositor WlCompositor;
42 typedef ::wl_seat WlSeat;
43 typedef ::wl_pointer WlPointer;
44 typedef ::wl_keyboard WlKeyboard;
45 typedef ::wl_touch WlTouch;
47 typedef ::wl_seat_listener WlSeatListener;
48 typedef ::wl_pointer_listener WlPointerListener;
49 typedef ::wl_touch_listener WlTouchListener;
50 typedef ::wl_keyboard_listener WlKeyboardListener;
52 #ifdef WAYLAND_EXTENSIONS_SUPPORTED
53 typedef ::xdg_shell WlXdgShell;
54 typedef ::xdg_surface WlXdgShellSurface;
55 typedef ::wl_text_input_manager WlTextInputManager; // See Tizen wayland-extensions/protocol/text.xml
56 typedef ::wl_text_input WlTextInput; // See Tizen wayland-extensions/protocol/text.xml
57 typedef ::wl_text_input_listener WlTextInputListener; // See Tizen wayland-extensions/protocol/text.xml
60 typedef void* WlXdgShell;
61 typedef void* WlXdgShellSurface;
62 typedef void* WlTextInputManager;
63 typedef void* WlTextInput;
64 typedef void* WlTextInputListener;
70 #endif /* __DALI_WL_TYPES_H__ */