aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindings/eio_js/Eio_Js.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/eio_js/Eio_Js.hh')
-rw-r--r--src/bindings/eio_js/Eio_Js.hh44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/bindings/eio_js/Eio_Js.hh b/src/bindings/eio_js/Eio_Js.hh
new file mode 100644
index 0000000000..e379229870
--- /dev/null
+++ b/src/bindings/eio_js/Eio_Js.hh
@@ -0,0 +1,44 @@
+#ifndef EIO_JS_INIT_HH
+#define EIO_JS_INIT_HH
+
+#include <Eio.h>
+#include <Ecore.h>
+
+#include <Eina.hh>
+
+#include <Eina_Js.hh>
+
+#ifdef EAPI
+# undef EAPI
+#endif
+
+#ifdef _WIN32
+# ifdef EFL_EIO_JS_BUILD
+# ifdef DLL_EXPORT
+# define EAPI __declspec(dllexport)
+# else
+# define EAPI
+# endif /* ! DLL_EXPORT */
+# else
+# define EAPI __declspec(dllimport)
+# endif /* ! EFL_EIO_JS_BUILD */
+#else
+# ifdef __GNUC__
+# if __GNUC__ >= 4
+# define EAPI __attribute__ ((visibility("default")))
+# else
+# define EAPI
+# endif
+# else
+# define EAPI
+# endif
+#endif /* ! _WIN32 */
+
+namespace efl { namespace eio { namespace js {
+
+EAPI
+void register_eio(v8::Isolate* isolate, v8::Handle<v8::Object> exports);
+
+} } } // namespace efl { namespace eio { namespace js {
+
+#endif /* EIO_JS_INIT_HH */