summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/ecore.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-11 09:24:45 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-11 09:24:45 +0200
commit0c30e8a8efcc32de3216a8f49b84793e51ff31cc (patch)
tree86e1f7ed44472730364a586bca82a884c8d376f0 /lib/efl/native/ecore.rb
parent2c794ec852823d6601f6f360962691b56d8c7fbb (diff)
downloadffi-efl-0c30e8a8efcc32de3216a8f49b84793e51ff31cc.zip
ffi-efl-0c30e8a8efcc32de3216a8f49b84793e51ff31cc.tar.gz
take care of EAPI extern with FFI#attach_variable
Diffstat (limited to 'lib/efl/native/ecore.rb')
-rw-r--r--lib/efl/native/ecore.rb19
1 files changed, 13 insertions, 6 deletions
diff --git a/lib/efl/native/ecore.rb b/lib/efl/native/ecore.rb
index e6c8b8f..d0fe205 100644
--- a/lib/efl/native/ecore.rb
+++ b/lib/efl/native/ecore.rb
@@ -27,6 +27,7 @@ module Efl
# TYPEDEFS
# typedef struct _Ecore_Version Ecore_Version;
typedef :pointer, :ecore_version
+ typedef :pointer, :ecore_version_p
# typedef enum _Ecore_Fd_Handler_Flags Ecore_Fd_Handler_Flags;
typedef :pointer, :ecore_fd_handler_flags
# typedef enum _Ecore_Exe_Flags Ecore_Exe_Flags;
@@ -134,14 +135,20 @@ module Efl
# typedef Eina_Bool (*Ecore_Win32_Handle_Cb) (void *data, Ecore_Win32_Handler *wh);
callback :ecore_win32_handle_cb, [ :void_p, :ecore_win32_handler_p ], :eina_bool
#
+ # VARIABLES
+ # EAPI extern Ecore_Version *ecore_version;
+ attach_variable :ecore_version, :ecore_version_p
+ # EAPI extern int ECORE_EXE_EVENT_ADD;
+ attach_variable :ECORE_EXE_EVENT_ADD, :int
+ # EAPI extern int ECORE_EXE_EVENT_DEL;
+ attach_variable :ECORE_EXE_EVENT_DEL, :int
+ # EAPI extern int ECORE_EXE_EVENT_DATA;
+ attach_variable :ECORE_EXE_EVENT_DATA, :int
+ # EAPI extern int ECORE_EXE_EVENT_ERROR;
+ attach_variable :ECORE_EXE_EVENT_ERROR, :int
+ #
# FUNCTIONS
fcts = [
- # EAPI extern Ecore_Version *ecore_version;
- # FIXME
- # EAPI extern int ECORE_EXE_EVENT_ADD; /**< A child process has been added */ EAPI extern int ECORE_EXE_EVENT_DEL; /**< A child process has been deleted (it exited, naming consistent with the rest of ecore). */
- # FIXME
- # EAPI extern int ECORE_EXE_EVENT_DATA; /**< Data from a child process. */ EAPI extern int ECORE_EXE_EVENT_ERROR; /**< Errors from a child process. */
- # FIXME
# EAPI int ecore_init(void);
[ :ecore_init, [ ], :int ],
# EAPI int ecore_shutdown(void);