summaryrefslogtreecommitdiff
path: root/src/bindings/ethumb_js/Ethumb_Js.hh
blob: 39459708ae5887e4cb4d88f00f7c7194b02056a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef ETHUMB_JS_INIT_HH
#define ETHUMB_JS_INIT_HH

#include <Eina.hh>

#include <Eina_Js.hh>
#include <Ethumb_Client.h>

#ifdef EAPI
# undef EAPI
#endif

#ifdef _WIN32
# ifdef EFL_ETHUMB_JS_BUILD
#  ifdef DLL_EXPORT
#   define EAPI __declspec(dllexport)
#  else
#   define EAPI
#  endif /* ! DLL_EXPORT */
# else
#  define EAPI __declspec(dllimport)
# endif /* ! EFL_ETHUMB_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 ethumb { namespace js {

using ::efl::eina::js::compatibility_new;
using ::efl::eina::js::compatibility_return_type;
using ::efl::eina::js::compatibility_callback_info_type;
using ::efl::eina::js::compatibility_return;
using ::efl::eina::js::compatibility_get_pointer_internal_field;
using ::efl::eina::js::compatibility_set_pointer_internal_field;

EAPI void register_ethumb(v8::Isolate *isolate, v8::Handle<v8::Object> exports);
      
} } } // namespace efl { namespace ethumb { namespace js {

#endif /* ETHUMB_JS_INIT_HH */