diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-27 06:27:47 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-27 06:27:47 +0200 |
commit | 94434474b1c0edd25e0e2423635c6bc12e574e18 (patch) | |
tree | 260fa051878a1d015500edd0988f9bb41ce08710 /lib/efl/ffi.rb | |
parent | dbab4c802acbcd62262efd44f5415285a39de011 (diff) | |
download | ffi-efl-94434474b1c0edd25e0e2423635c6bc12e574e18.zip ffi-efl-94434474b1c0edd25e0e2423635c6bc12e574e18.tar.gz |
module Efl::API renamed to Efl::FFI
Diffstat (limited to 'lib/efl/ffi.rb')
-rw-r--r-- | lib/efl/ffi.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/efl/ffi.rb b/lib/efl/ffi.rb index f583f2d..863b1b9 100644 --- a/lib/efl/ffi.rb +++ b/lib/efl/ffi.rb @@ -5,9 +5,9 @@ require 'ffi' # module Efl # - module API + module FFI # - extend FFI::Library + extend ::FFI::Library # def attach_fcts fcts fcts.each do |func| @@ -60,13 +60,13 @@ module Efl end self.class.func_prefixes.each do |p| sym = p+m_s - if Efl::API.respond_to? sym - self.class.class_eval "def #{m} *args, █ r=Efl::API.#{sym}(@ptr,#{args_s}); yield r if block_given?; r; end" + if Efl::FFI.respond_to? sym + self.class.class_eval "def #{m} *args, █ r=Efl::FFI.#{sym}(@ptr,#{args_s}); yield r if block_given?; r; end" return self.send m, *args, &block end end - r = Efl::API.send m, @ptr, *args - self.class.class_eval "def #{m} *args, █ r=Efl::API.#{m}(@ptr,#{args_s}); yield r if block_given?; r; end" + r = Efl::FFI.send m, @ptr, *args + self.class.class_eval "def #{m} *args, █ r=Efl::FFI.#{m}(@ptr,#{args_s}); yield r if block_given?; r; end" r end end |