diff options
-rw-r--r-- | lib/efl/native/efreet_base.rb | 51 | ||||
-rwxr-xr-x | tools/extract-api.sh | 1 | ||||
-rwxr-xr-x | tools/genruby.rb | 1 |
3 files changed, 53 insertions, 0 deletions
diff --git a/lib/efl/native/efreet_base.rb b/lib/efl/native/efreet_base.rb new file mode 100644 index 0000000..a21ef43 --- /dev/null +++ b/lib/efl/native/efreet_base.rb @@ -0,0 +1,51 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/native' +require 'efl/native/eina_list' +# +module Efl + # + module Efreet + # + FCT_PREFIX = 'efreet_base_' unless const_defined? :FCT_PREFIX + # + def self.method_missing meth, *args, &block + sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX + self.send sym, *args, &block + end + # + end + # + module Native + # + ffi_lib 'efreet' + # + # TYPEDEFS + # typedef struct _Efreet_Event_Cache_Update Efreet_Event_Cache_Update; + typedef :pointer, :efreet_event_cache_update + # + # FUNCTIONS + fcts = [ + # EAPI const char *efreet_data_home_get(void); + [ :efreet_data_home_get, [ ], :string ], + # EAPI Eina_List *efreet_data_dirs_get(void); + [ :efreet_data_dirs_get, [ ], :eina_list ], + # EAPI const char *efreet_config_home_get(void); + [ :efreet_config_home_get, [ ], :string ], + # EAPI const char *efreet_desktop_dir_get(void); + [ :efreet_desktop_dir_get, [ ], :string ], + # EAPI Eina_List *efreet_config_dirs_get(void); + [ :efreet_config_dirs_get, [ ], :eina_list ], + # EAPI const char *efreet_cache_home_get(void); + [ :efreet_cache_home_get, [ ], :string ], + # EAPI const char *efreet_hostname_get(void); + [ :efreet_hostname_get, [ ], :string ], + ] + # + attach_fcts fcts + # + end +end +# +# EOF diff --git a/tools/extract-api.sh b/tools/extract-api.sh index b222a64..50ec01e 100755 --- a/tools/extract-api.sh +++ b/tools/extract-api.sh @@ -47,6 +47,7 @@ for header in \ "${INCLUDE}/embryo-1/Embryo.h" \ "${INCLUDE}/edje-1/Edje.h" \ "${INCLUDE}/efreet-1/Efreet.h" \ + "${INCLUDE}/efreet-1/efreet_base.h" \ "${INCLUDE}/ethumb-1/Ethumb.h" \ "${INCLUDE}/ethumb-1/Ethumb_Client.h" \ "${INCLUDE}/ethumb-1/Ethumb_Plugin.h" \ diff --git a/tools/genruby.rb b/tools/genruby.rb index 3fcafa6..76f1b25 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -294,6 +294,7 @@ libs << efl_h('eio','Eio.h','Eio',nil,nil,["#{NATIVE}/eina_file","#{NATIVE}/eet" libs << efl_h('embryo','Embryo.h','Embryo') libs << efl_h('edje','Edje.h','Edje',nil,nil,["#{NATIVE}/evas"]) libs << efl_h('efreet','Efreet.h','Efreet') +libs << efl_h('efreet','efreet_base.h','Efreet',nil,nil,["#{NATIVE}/eina_list"]) libs << efl_h('ethumb','Ethumb.h','Ethumb') libs << efl_h('ethumb_client','Ethumb_Client.h','EthumbClient',nil,nil,["#{NATIVE}/ethumb"]) libs << efl_h('ethumb','Ethumb_Plugin.h','EthumbPlugin',nil,nil,["#{NATIVE}/evas","#{NATIVE}/ecore_evas","#{NATIVE}/ethumb"]) |