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/evas.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/evas.rb')
-rw-r--r-- | lib/efl/native/evas.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/efl/native/evas.rb b/lib/efl/native/evas.rb index 46088d0..20103b7 100644 --- a/lib/efl/native/evas.rb +++ b/lib/efl/native/evas.rb @@ -93,6 +93,7 @@ module Efl # TYPEDEFS # typedef struct _Evas_Version Evas_Version; typedef :pointer, :evas_version + typedef :pointer, :evas_version_p # typedef struct _Evas_Coord_Rectangle Evas_Coord_Rectangle; typedef :pointer, :evas_coord_rectangle # typedef struct _Evas_Point Evas_Point; @@ -253,10 +254,12 @@ module Efl # typedef void (*Evas_Object_Box_Layout) (Evas_Object *o, Evas_Object_Box_Data *priv, void *user_data); callback :evas_object_box_layout, [ :evas_object_p, :evas_object_box_data_p, :void_p ], :void # + # VARIABLES + # EAPI extern Evas_Version *evas_version; + attach_variable :evas_version, :evas_version_p + # # FUNCTIONS fcts = [ - # EAPI extern Evas_Version *evas_version; - # FIXME # EAPI int evas_init (void); [ :evas_init, [ ], :int ], # EAPI int evas_shutdown (void); |