diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-12-21 15:12:46 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-12-21 15:12:46 +0100 |
commit | c9c71b6e5bc2b18ec1091930b05ef084aea7c6ab (patch) | |
tree | 280f8a7450ede457cf5993864320ed290380e3ab /lib | |
parent | 0bfdb220d9c00401ed5e7799f4a36dc18ccdccba (diff) | |
download | ffi-efl-c9c71b6e5bc2b18ec1091930b05ef084aea7c6ab.zip ffi-efl-c9c71b6e5bc2b18ec1091930b05ef084aea7c6ab.tar.gz |
take care of efreet_base.h
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efl/native/efreet_base.rb | 51 |
1 files changed, 51 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 |