diff options
author | Jérémy Zurcher <jeremy.zurcher@heraeus.com> | 2011-04-19 10:46:20 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy.zurcher@heraeus.com> | 2011-04-19 10:46:20 +0200 |
commit | 794e67ddb56539fcd94ab2b29fbd2894b53f9066 (patch) | |
tree | d27f58d9c3602d54fa77c158d4cdcbe7659ae824 /lib/e17 | |
parent | a0594820fcc67ef9451a7ebd93058f9926246e09 (diff) | |
download | ffi-efl-794e67ddb56539fcd94ab2b29fbd2894b53f9066.zip ffi-efl-794e67ddb56539fcd94ab2b29fbd2894b53f9066.tar.gz |
ffi_helper: add needed default typedef
Diffstat (limited to 'lib/e17')
-rw-r--r-- | lib/e17/ffi_helper.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/e17/ffi_helper.rb b/lib/e17/ffi_helper.rb index 5aaf7a4..26efe57 100644 --- a/lib/e17/ffi_helper.rb +++ b/lib/e17/ffi_helper.rb @@ -4,6 +4,7 @@ require 'ffi' # module FFIHelper + # def attach_fcts fcts fcts.each do |func| begin @@ -13,6 +14,7 @@ module FFIHelper end end end + # def create_aliases l, fcts module_eval <<-code class << self @@ -20,6 +22,18 @@ module FFIHelper end code end + # + def self.extended mod + mod.module_eval <<-EOF + typedef :pointer, :int_p + typedef :pointer, :uint_p + typedef :pointer, :void_p + typedef :pointer, :uchar_p + typedef :pointer, :string_array + # + typedef :pointer, :eina_list_p + EOF + end end # # EOF |