diff options
-rw-r--r-- | lib/efl/ffi/ecore.rb | 13 | ||||
-rw-r--r-- | lib/efl/ffi/ecore_evas.rb (renamed from lib/efl/ffi/ecore/ecore_evas.rb) | 13 | ||||
-rw-r--r-- | lib/efl/ffi/ecore_getopt.rb (renamed from lib/efl/ffi/ecore/ecore_getopt.rb) | 13 | ||||
-rw-r--r-- | lib/efl/ffi/ecore_input.rb (renamed from lib/efl/ffi/ecore/ecore_input.rb) | 13 | ||||
-rw-r--r-- | lib/efl/ffi/edje.rb | 13 | ||||
-rw-r--r-- | lib/efl/ffi/eet.rb | 13 | ||||
-rw-r--r-- | lib/efl/ffi/eina.rb | 13 | ||||
-rw-r--r-- | lib/efl/ffi/eina_hash.rb (renamed from lib/efl/ffi/eina/eina_hash.rb) | 13 | ||||
-rw-r--r-- | lib/efl/ffi/eina_list.rb (renamed from lib/efl/ffi/eina/eina_list.rb) | 13 | ||||
-rw-r--r-- | lib/efl/ffi/eina_types.rb (renamed from lib/efl/ffi/eina/eina_types.rb) | 13 | ||||
-rw-r--r-- | lib/efl/ffi/elementary.rb | 13 | ||||
-rw-r--r-- | lib/efl/ffi/evas.rb | 13 |
12 files changed, 96 insertions, 60 deletions
diff --git a/lib/efl/ffi/ecore.rb b/lib/efl/ffi/ecore.rb index ddd41b5..2c6b55f 100644 --- a/lib/efl/ffi/ecore.rb +++ b/lib/efl/ffi/ecore.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module Ecore + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'ecore_'+m.to_s, *args, &block + sym = 'ecore_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'ecore' # @@ -384,6 +386,7 @@ module Efl ] # attach_fcts fcts + # end end # diff --git a/lib/efl/ffi/ecore/ecore_evas.rb b/lib/efl/ffi/ecore_evas.rb index 7231897..8ed575f 100644 --- a/lib/efl/ffi/ecore/ecore_evas.rb +++ b/lib/efl/ffi/ecore_evas.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module EcoreEvas + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'ecore_evas_'+m.to_s, *args, &block + sym = 'ecore_evas_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'ecore_evas' # @@ -372,6 +374,7 @@ module Efl ] # attach_fcts fcts + # end end # diff --git a/lib/efl/ffi/ecore/ecore_getopt.rb b/lib/efl/ffi/ecore_getopt.rb index 40cd81d..0dffd49 100644 --- a/lib/efl/ffi/ecore/ecore_getopt.rb +++ b/lib/efl/ffi/ecore_getopt.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module EcoreGetopt + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'ecore_getopt_'+m.to_s, *args, &block + sym = 'ecore_getopt_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'ecore' # @@ -62,6 +64,7 @@ module Efl ] # attach_fcts fcts + # end end # diff --git a/lib/efl/ffi/ecore/ecore_input.rb b/lib/efl/ffi/ecore_input.rb index 9583639..992ed6c 100644 --- a/lib/efl/ffi/ecore/ecore_input.rb +++ b/lib/efl/ffi/ecore_input.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module EcoreInput + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'ecore_event_'+m.to_s, *args, &block + sym = 'ecore_event_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'ecore_input' # @@ -72,6 +74,7 @@ module Efl ] # attach_fcts fcts + # end end # diff --git a/lib/efl/ffi/edje.rb b/lib/efl/ffi/edje.rb index c75f28f..de05678 100644 --- a/lib/efl/ffi/edje.rb +++ b/lib/efl/ffi/edje.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module Edje + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'edje_'+m.to_s, *args, &block + sym = 'edje_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'edje' # @@ -453,6 +455,7 @@ module Efl ] # attach_fcts fcts + # end end # diff --git a/lib/efl/ffi/eet.rb b/lib/efl/ffi/eet.rb index 5e78e09..51b6df1 100644 --- a/lib/efl/ffi/eet.rb +++ b/lib/efl/ffi/eet.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module Eet + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'eet_'+m.to_s, *args, &block + sym = 'eet_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'eet' # @@ -327,6 +329,7 @@ module Efl ] # attach_fcts fcts + # end end # diff --git a/lib/efl/ffi/eina.rb b/lib/efl/ffi/eina.rb index 6d09164..8ecfd4e 100644 --- a/lib/efl/ffi/eina.rb +++ b/lib/efl/ffi/eina.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module Eina + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'eina_'+m.to_s, *args, &block + sym = 'eina_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'eina' # @@ -39,6 +41,7 @@ module Efl ] # attach_fcts fcts + # end end # diff --git a/lib/efl/ffi/eina/eina_hash.rb b/lib/efl/ffi/eina_hash.rb index 1b110cc..e387fb5 100644 --- a/lib/efl/ffi/eina/eina_hash.rb +++ b/lib/efl/ffi/eina_hash.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module EinaHash + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'eina_hash_'+m.to_s, *args, &block + sym = 'eina_hash_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'eina' # @@ -102,6 +104,7 @@ module Efl ] # attach_fcts fcts + # end end # diff --git a/lib/efl/ffi/eina/eina_list.rb b/lib/efl/ffi/eina_list.rb index 2799433..939743a 100644 --- a/lib/efl/ffi/eina/eina_list.rb +++ b/lib/efl/ffi/eina_list.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module EinaList + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'eina_list_'+m.to_s, *args, &block + sym = 'eina_list_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'eina' # @@ -99,6 +101,7 @@ module Efl ] # attach_fcts fcts + # end end # diff --git a/lib/efl/ffi/eina/eina_types.rb b/lib/efl/ffi/eina_types.rb index 5a5dd4d..df51613 100644 --- a/lib/efl/ffi/eina/eina_types.rb +++ b/lib/efl/ffi/eina_types.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module Eina + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'eina_'+m.to_s, *args, &block + sym = 'eina_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'eina' # @@ -38,6 +40,7 @@ module Efl ] # attach_fcts fcts + # end end # diff --git a/lib/efl/ffi/elementary.rb b/lib/efl/ffi/elementary.rb index 1411b87..dabc667 100644 --- a/lib/efl/ffi/elementary.rb +++ b/lib/efl/ffi/elementary.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module Elm + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'elm_'+m.to_s, *args, &block + sym = 'elm_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'libelementary-ver-pre-svn-09.so.0' # @@ -3211,6 +3213,7 @@ module Efl ] # attach_fcts fcts + # end end # diff --git a/lib/efl/ffi/evas.rb b/lib/efl/ffi/evas.rb index f6bc3c6..ce97982 100644 --- a/lib/efl/ffi/evas.rb +++ b/lib/efl/ffi/evas.rb @@ -6,13 +6,15 @@ require 'efl/ffi' module Efl # module Evas + # + extend Efl::FFIHelper + # def self.method_missing m, *args, &block - return Efl::FFI.send 'evas_'+m.to_s, *args, &block + sym = 'evas_'+m.to_s + raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym + self.module_eval "def self.#{m} *args, █ r=self.#{sym}(*args); yield r if block_given?; r; end" + self.send sym, *args, &block end - end - # - module FFI - # # ffi_lib 'evas' # @@ -1288,6 +1290,7 @@ module Efl ] # attach_fcts fcts + # end end # |