Revert "[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 #include <wayland-extension/xdg-shell-client-protocol.h>   // from wayland
26 #include <wayland-extension/text-client-protocol.h>
27 #endif
28
29 namespace Dali
30 {
31
32 typedef ::wl_display WlDisplay;
33 typedef ::wl_surface WlSurface;
34 typedef ::wl_array WlArray;
35 typedef ::wl_output WlOutput;
36
37 typedef ::wl_shell WlShell;
38 typedef ::wl_shell_surface WlShellSurface;
39
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;
46
47 typedef ::wl_seat_listener WlSeatListener;
48 typedef ::wl_pointer_listener WlPointerListener;
49 typedef ::wl_touch_listener WlTouchListener;
50 typedef ::wl_keyboard_listener WlKeyboardListener;
51
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
58
59 #else
60 typedef void* WlXdgShell;
61 typedef void* WlXdgShellSurface;
62 typedef void* WlTextInputManager;
63 typedef void* WlTextInput;
64 typedef void* WlTextInputListener;
65
66 #endif
67
68 } // namespace Dali
69
70 #endif /* __DALI_WL_TYPES_H__ */