From 907432c1ecf7f71afd618266aeb9ba48ccf50f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 29 Apr 2011 15:38:52 +0200 Subject: add Efl::FFIHelper#steal_ffitype --- lib/efl/ffi.rb | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.1-2-g2b99