summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-12-21 15:12:46 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-12-21 15:12:46 +0100
commitc9c71b6e5bc2b18ec1091930b05ef084aea7c6ab (patch)
tree280f8a7450ede457cf5993864320ed290380e3ab
parent0bfdb220d9c00401ed5e7799f4a36dc18ccdccba (diff)
downloadffi-efl-c9c71b6e5bc2b18ec1091930b05ef084aea7c6ab.zip
ffi-efl-c9c71b6e5bc2b18ec1091930b05ef084aea7c6ab.tar.gz
take care of efreet_base.h
-rw-r--r--lib/efl/native/efreet_base.rb51
-rwxr-xr-xtools/extract-api.sh1
-rwxr-xr-xtools/genruby.rb1
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"])