diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-29 15:38:52 +0200 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-29 15:38:52 +0200 | 
| commit | 907432c1ecf7f71afd618266aeb9ba48ccf50f66 (patch) | |
| tree | b9f7dd83ef2029953c17da2c0a0d5e11f41ab975 /lib/efl | |
| parent | 9ac181e041e5c499a3302b8d31f0678e9da1ce52 (diff) | |
| download | ffi-efl-907432c1ecf7f71afd618266aeb9ba48ccf50f66.zip ffi-efl-907432c1ecf7f71afd618266aeb9ba48ccf50f66.tar.gz  | |
add Efl::FFIHelper#steal_ffitype
Diffstat (limited to 'lib/efl')
| -rw-r--r-- | lib/efl/ffi.rb | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/efl/ffi.rb b/lib/efl/ffi.rb index 5aca7eb..65a7f8f 100644 --- a/lib/efl/ffi.rb +++ b/lib/efl/ffi.rb @@ -17,6 +17,14 @@ module Efl              end          end          # +        def ffi_typedefs +            @ffi_typedefs +        end +        # +        def steal_ffitype mod, sym +            typedef mod.ffi_typedefs[sym], sym +        end +        #          def self.extended mod              #              mod.extend FFI::Library @@ -54,6 +62,7 @@ module Efl              mod.callback :eina_compare_cb, [ :void_p, :void_p ], :int              mod.callback :eina_each_cb, [ :void_p, :void_p, :void_p ], :eina_bool              mod.callback :eina_free_cb, [ :void_p ], :void +            #          end          #      end  | 
