Add headers and defaults for input support and egl support.
authorChris Michael <cp.michael@samsung.com>
Tue, 9 Apr 2013 08:40:22 +0000 (09:40 +0100)
committerChris Michael <cp.michael@samsung.com>
Tue, 16 Apr 2013 11:46:24 +0000 (12:46 +0100)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_comp_wl.h

index 6faa5c7..174386f 100644 (file)
@@ -7,6 +7,22 @@
 #  include <wayland-server.h>
 #  include <xkbcommon/xkbcommon.h>
 
+#  ifdef __linux__
+#   include <linux/input.h>
+#  else
+#   define BTN_LEFT 0x110
+#   define BTN_RIGHT 0x111
+#   define BTN_MIDDLE 0x112
+#   define BTN_SIDE 0x113
+#   define BTN_EXTRA 0x114
+#   define BTN_FORWARD 0x115
+#   define BTN_BACK 0x116
+#  endif
+
+#  ifdef HAVE_WAYLAND_EGL
+#   include <EGL/egl.h>
+#  endif
+
 #  define container_of(ptr, type, member) ({ \
    const __typeof__(((type *)0)->member) *__mptr = (ptr); \
    (type *)((char *)__mptr - offsetof(type,member));})
@@ -217,6 +233,15 @@ struct _E_Wayland_Compositor
         struct xkb_context *context;
      } xkb;
 
+#ifdef HAVE_WAYLAND_EGL
+   struct 
+     {
+        EGLDisplay display;
+        EGLContext context;
+        EGLConfig config;
+     } egl;
+#endif
+
    E_Wayland_Shell_Interface shell_interface;
 
    Ecore_Fd_Handler *fd_handler;