devilhorns pushed a commit to branch master.

commit 29be68914f76d472a46e8b94772adfd9df900be7
Author: Chris Michael <[email protected]>
Date:   Tue Apr 9 09:40:22 2013 +0100

    Add headers and defaults for input support and egl support.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_comp_wl.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/src/bin/e_comp_wl.h b/src/bin/e_comp_wl.h
index 6faa5c7..174386f 100644
--- a/src/bin/e_comp_wl.h
+++ b/src/bin/e_comp_wl.h
@@ -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;

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to