[Tizen] ecore-wl2: add zxdg_shell define
[platform/core/uifw/dali-adaptor.git] / dali / integration-api / wayland / wl-types.h
1 #ifndef __DALI_WL_TYPES_H__
2 #define __DALI_WL_TYPES_H__
3
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <wayland-client.h> // from wayland-devel package
23
24 #ifdef WAYLAND_EXTENSIONS_SUPPORTED
25 #ifdef ECORE_WL2
26 #include <wayland-extension/xdg-shell-unstable-v6-client-protocol.h>
27 #else
28 #include <wayland-extension/xdg-shell-client-protocol.h>   // from wayland
29 #endif
30 #include <wayland-extension/text-client-protocol.h>
31 #endif
32
33 namespace Dali
34 {
35
36 typedef ::wl_display WlDisplay;
37 typedef ::wl_surface WlSurface;
38 typedef ::wl_array WlArray;
39 typedef ::wl_output WlOutput;
40
41 typedef ::wl_shell WlShell;
42 typedef ::wl_shell_surface WlShellSurface;
43
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;
50
51 typedef ::wl_seat_listener WlSeatListener;
52 typedef ::wl_pointer_listener WlPointerListener;
53 typedef ::wl_touch_listener WlTouchListener;
54 typedef ::wl_keyboard_listener WlKeyboardListener;
55
56 #ifdef WAYLAND_EXTENSIONS_SUPPORTED
57 #ifdef ECORE_WL2
58 typedef ::zxdg_shell_v6 WlXdgShell;
59 typedef ::zxdg_surface_v6 WlXdgShellSurface;
60 #else
61 typedef ::xdg_shell WlXdgShell;
62 typedef ::xdg_surface WlXdgShellSurface;
63 #endif
64
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
68
69 #else
70 typedef void* WlXdgShell;
71 typedef void* WlXdgShellSurface;
72 typedef void* WlTextInputManager;
73 typedef void* WlTextInput;
74 typedef void* WlTextInputListener;
75
76 #endif
77
78 } // namespace Dali
79
80 #endif /* __DALI_WL_TYPES_H__ */