diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-11 09:24:45 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-11 09:24:45 +0200 |
commit | 0c30e8a8efcc32de3216a8f49b84793e51ff31cc (patch) | |
tree | 86e1f7ed44472730364a586bca82a884c8d376f0 /lib/efl/native/elementary.rb | |
parent | 2c794ec852823d6601f6f360962691b56d8c7fbb (diff) | |
download | ffi-efl-0c30e8a8efcc32de3216a8f49b84793e51ff31cc.zip ffi-efl-0c30e8a8efcc32de3216a8f49b84793e51ff31cc.tar.gz |
take care of EAPI extern with FFI#attach_variable
Diffstat (limited to 'lib/efl/native/elementary.rb')
-rw-r--r-- | lib/efl/native/elementary.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/efl/native/elementary.rb b/lib/efl/native/elementary.rb index 61fd829..a02616d 100644 --- a/lib/efl/native/elementary.rb +++ b/lib/efl/native/elementary.rb @@ -124,6 +124,7 @@ module Efl # TYPEDEFS # typedef struct _Elm_Version Elm_Version; typedef :pointer, :elm_version + typedef :pointer, :elm_version_p # typedef struct _Elm_Event_Policy_Changed Elm_Event_Policy_Changed; typedef :pointer, :elm_event_policy_changed # typedef struct _Elm_Text_Class Elm_Text_Class; @@ -325,14 +326,16 @@ module Efl # typedef void *(*Elm_Store_Item_Mapping_Cb) (void *data, Elm_Store_Item *sti, const char *part); callback :elm_store_item_mapping_cb, [ :void_p, :elm_store_item_p, :string ], :void_p # - # FUNCTIONS - fcts = [ + # VARIABLES # EAPI extern Elm_Version *elm_version; - # FIXME + attach_variable :elm_version, :elm_version_p # EAPI extern int ELM_ECORE_EVENT_ETHUMB_CONNECT; - # FIXME + attach_variable :ELM_ECORE_EVENT_ETHUMB_CONNECT, :int # EAPI extern int ELM_EVENT_POLICY_CHANGED; - # FIXME + attach_variable :ELM_EVENT_POLICY_CHANGED, :int + # + # FUNCTIONS + fcts = [ # EAPI int elm_init(int argc, char **argv); [ :elm_init, [ :int, :string_array ], :int ], # EAPI int elm_shutdown(void); |