ecore-wl2: Add start of headers for ecore_wl2 library
authorChris Michael <cp.michael@samsung.com>
Tue, 18 Aug 2015 13:50:28 +0000 (09:50 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 3 Dec 2015 17:02:40 +0000 (12:02 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/Ecore_Wl2.h [new file with mode: 0644]
src/lib/ecore_wl2/ecore_wl2_private.h [new file with mode: 0644]

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
new file mode 100644 (file)
index 0000000..f18c2bb
--- /dev/null
@@ -0,0 +1,39 @@
+#ifndef _ECORE_WL2_H_
+# define _ECORE_WL2_H_
+
+# include <Eina.h>
+# include <Ecore.h>
+# include <wayland-client.h>
+# include <wayland-cursor.h>
+# include <xkbcommon/xkbcommon.h>
+
+# ifdef EAPI
+#  undef EAPI
+# endif
+
+# ifdef __GNUC__
+#  if __GNUC__ >= 4
+#   define EAPI __attribute__ ((visibility("default")))
+#  else
+#   define EAPI
+#  endif
+# else
+#  define EAPI
+# endif
+
+/* # ifdef __cplusplus */
+/* extern "C" { */
+/* # endif */
+
+# ifndef _ECORE_WAYLAND_WINDOW_PREDEF
+typedef struct _Ecore_Wl_Window Ecore_Wl_Window;
+# endif
+
+/* # ifdef __cplusplus */
+/* } */
+/* # endif */
+
+# undef EAPI
+# define EAPI
+
+#endif
diff --git a/src/lib/ecore_wl2/ecore_wl2_private.h b/src/lib/ecore_wl2/ecore_wl2_private.h
new file mode 100644 (file)
index 0000000..af20ca4
--- /dev/null
@@ -0,0 +1,39 @@
+#ifndef _ECORE_WL2_PRIVATE_H
+# define _ECORE_WL2_PRIVATE_H
+
+# include "Ecore_Wl2.h"
+# include "Ecore_Input.h"
+
+extern int _ecore_wl2_log_dom;
+
+# ifdef ECORE_WL2_DEFAULT_LOG_COLOR
+#  undef ECORE_WL2_DEFAULT_LOG_COLOR
+# endif
+# define ECORE_WL2_DEFAULT_LOG_COLOR EINA_COLOR_BLUE
+
+# ifdef ERR
+#  undef ERR
+# endif
+# define ERR(...) EINA_LOG_DOM_ERR(_ecore_wl2_log_dom, __VA_ARGS__)
+
+# ifdef DBG
+#  undef DBG
+# endif
+# define DBG(...) EINA_LOG_DOM_DBG(_ecore_wl2_log_dom, __VA_ARGS__)
+
+# ifdef INF
+#  undef INF
+# endif
+# define INF(...) EINA_LOG_DOM_INFO(_ecore_wl2_log_dom, __VA_ARGS__)
+
+# ifdef WRN
+#  undef WRN
+# endif
+# define WRN(...) EINA_LOG_DOM_WARN(_ecore_wl2_log_dom, __VA_ARGS__)
+
+# ifdef CRI
+#  undef CRI
+# endif
+# define CRI(...) EINA_LOG_DOM_CRIT(_ecore_wl2_log_dom, __VA_ARGS__)
+
+#endif