diff options
author | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2014-09-01 15:08:49 -0300 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2015-12-23 23:59:40 -0200 |
commit | a3db1dddd3ba67c81118f7f2c0bc753dc8aac551 (patch) | |
tree | 233ee1be7bfa299bff560207135d20940c4e411f /src/lib/emotion/Emotion.h | |
parent | 1a3cb45f1cc7fdf8d481879e6bd7349d9cb0b3fa (diff) |
efl-js: JavaScript Eolian binding
To configure efl sources with bindings to use in nodejs add ––with-js=nodejs in configure flags to generate node files
$ configure --with-js=nodejs
and compile normally with:
$ make
$ make install
To use, you have to require efl:
efl = require('efl')
The bindings is divided in two parts: generated and manually
written. The generation uses the Eolian library for parsing Eo files
and generate C++ code that is compiled against V8 interpreter library
to create a efl.node file that can be required in a node.js instance.
@feature
Diffstat (limited to '')
-rw-r--r-- | src/lib/emotion/Emotion.h | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/src/lib/emotion/Emotion.h b/src/lib/emotion/Emotion.h index e2d7a7a704..3ea786391d 100644 --- a/src/lib/emotion/Emotion.h +++ b/src/lib/emotion/Emotion.h | |||
@@ -120,6 +120,10 @@ | |||
120 | # endif | 120 | # endif |
121 | #endif /* ! _WIN32 */ | 121 | #endif /* ! _WIN32 */ |
122 | 122 | ||
123 | #ifdef __cplusplus | ||
124 | extern "C" { | ||
125 | #endif | ||
126 | |||
123 | #ifndef EFL_NOLEGACY_API_SUPPORT | 127 | #ifndef EFL_NOLEGACY_API_SUPPORT |
124 | #include "Emotion_Legacy.h" | 128 | #include "Emotion_Legacy.h" |
125 | #endif | 129 | #endif |
@@ -266,26 +270,23 @@ typedef enum _Emotion_Aspect Emotion_Aspect; /**< Aspect ratio option. */ | |||
266 | #define EMOTION_CHANNEL_AUTO -1 | 270 | #define EMOTION_CHANNEL_AUTO -1 |
267 | #define EMOTION_CHANNEL_DEFAULT 0 | 271 | #define EMOTION_CHANNEL_DEFAULT 0 |
268 | 272 | ||
269 | #ifdef __cplusplus | ||
270 | extern "C" { | ||
271 | #endif | ||
272 | |||
273 | #define EMOTION_VERSION_MAJOR EFL_VERSION_MAJOR | 273 | #define EMOTION_VERSION_MAJOR EFL_VERSION_MAJOR |
274 | #define EMOTION_VERSION_MINOR EFL_VERSION_MINOR | 274 | #define EMOTION_VERSION_MINOR EFL_VERSION_MINOR |
275 | /** | 275 | |
276 | * @typedef Emotion_Version | 276 | /** |
277 | * Represents the current version of Emotion | 277 | * @typedef Emotion_Version |
278 | */ | 278 | * Represents the current version of Emotion |
279 | typedef struct _Emotion_Version | 279 | */ |
280 | { | 280 | typedef struct _Emotion_Version |
281 | int major; /** < major (binary or source incompatible changes) */ | 281 | { |
282 | int minor; /** < minor (new features, bugfixes, major improvements version) */ | 282 | int major; /** < major (binary or source incompatible changes) */ |
283 | int micro; /** < micro (bugfix, internal improvements, no new features version) */ | 283 | int minor; /** < minor (new features, bugfixes, major improvements version) */ |
284 | int revision; /** < git revision (0 if a proper release or the git revision number Emotion is built from) */ | 284 | int micro; /** < micro (bugfix, internal improvements, no new features version) */ |
285 | } Emotion_Version; | 285 | int revision; /** < git revision (0 if a proper release or the git revision number Emotion is built from) */ |
286 | 286 | } Emotion_Version; | |
287 | EAPI extern Emotion_Version *emotion_version; | 287 | |
288 | 288 | EAPI extern Emotion_Version *emotion_version; | |
289 | |||
289 | /* api calls available */ | 290 | /* api calls available */ |
290 | 291 | ||
291 | /** | 292 | /** |
@@ -873,7 +874,7 @@ EAPI Eina_Bool emotion_object_smooth_scale_get (const Evas_Object *obj); | |||
873 | * @param obj The object target of the event. | 874 | * @param obj The object target of the event. |
874 | * @param ev The emotion event. | 875 | * @param ev The emotion event. |
875 | * | 876 | * |
876 | * @see Emotion_Event | 877 | * @see Emotion_Event |
877 | */ | 878 | */ |
878 | EAPI void emotion_object_event_simple_send (Evas_Object *obj, Emotion_Event ev); | 879 | EAPI void emotion_object_event_simple_send (Evas_Object *obj, Emotion_Event ev); |
879 | 880 | ||