diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-04 23:42:07 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-04 23:42:07 +0200 |
commit | e4baccaefd209a25daa3ff8d5277fe86aca1d379 (patch) | |
tree | eb2744b7a8624a7538cb0224d40879074c819653 /lib/efl/ffi/ecore_getopt.rb | |
parent | 3974ea1fb3734cbf4150c759eebdf8a93d77dc8b (diff) | |
download | ffi-efl-e4baccaefd209a25daa3ff8d5277fe86aca1d379.zip ffi-efl-e4baccaefd209a25daa3ff8d5277fe86aca1d379.tar.gz |
FFI are in separate namespaces (Efl::Evas::Native), ruby classes are in upper level (Efl::Evas)seperate-natives
Diffstat (limited to 'lib/efl/ffi/ecore_getopt.rb')
-rw-r--r-- | lib/efl/ffi/ecore_getopt.rb | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/lib/efl/ffi/ecore_getopt.rb b/lib/efl/ffi/ecore_getopt.rb deleted file mode 100644 index 0dffd49..0000000 --- a/lib/efl/ffi/ecore_getopt.rb +++ /dev/null @@ -1,71 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'efl/ffi' -# -module Efl - # - module EcoreGetopt - # - extend Efl::FFIHelper - # - def self.method_missing m, *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 - # - ffi_lib 'ecore' - # - # ENUMS - # typedef enum {...} Ecore_Getopt_Action; - enum :ecore_getopt_action, [ :ecore_getopt_action_store, :ecore_getopt_action_store_const, :ecore_getopt_action_store_true, - :ecore_getopt_action_store_false, :ecore_getopt_action_choice, :ecore_getopt_action_append, :ecore_getopt_action_count, :ecore_getopt_action_callback, - :ecore_getopt_action_help, :ecore_getopt_action_version, :ecore_getopt_action_copyright, :ecore_getopt_action_license ] - # typedef enum {...} Ecore_Getopt_Type; - enum :ecore_getopt_type, [ :ecore_getopt_type_str, :ecore_getopt_type_bool, :ecore_getopt_type_short, :ecore_getopt_type_int, - :ecore_getopt_type_long, :ecore_getopt_type_ushort, :ecore_getopt_type_uint, :ecore_getopt_type_ulong, :ecore_getopt_type_double ] - # typedef enum {...} Ecore_Getopt_Desc_Arg_Requirement; - enum :ecore_getopt_desc_arg_requirement, [ :ecore_getopt_desc_arg_requirement_no, 0, :ecore_getopt_desc_arg_requirement_yes, 1, - :ecore_getopt_desc_arg_requirement_optional, 3 ] - # - # TYPEDEFS - # typedef union _Ecore_Getopt_Value Ecore_Getopt_Value; - typedef :pointer, :ecore_getopt_value - typedef :pointer, :ecore_getopt_value_p - # typedef struct _Ecore_Getopt_Desc_Store Ecore_Getopt_Desc_Store; - typedef :pointer, :ecore_getopt_desc_store - # typedef struct _Ecore_Getopt_Desc_Callback Ecore_Getopt_Desc_Callback; - typedef :pointer, :ecore_getopt_desc_callback - # typedef struct _Ecore_Getopt_Desc Ecore_Getopt_Desc; - typedef :pointer, :ecore_getopt_desc - typedef :pointer, :ecore_getopt_desc_p - # typedef struct _Ecore_Getopt Ecore_Getopt; - typedef :pointer, :ecore_getopt - typedef :pointer, :ecore_getopt_p - # - # CALLBACKS - # - # FUNCTIONS - fcts = [ - # EAPI void ecore_getopt_help(FILE *fp, const Ecore_Getopt *info); - [ :ecore_getopt_help, [ :pointer, :ecore_getopt_p ], :void ], - # EAPI Eina_Bool ecore_getopt_parser_has_duplicates(const Ecore_Getopt *parser); - [ :ecore_getopt_parser_has_duplicates, [ :ecore_getopt_p ], :eina_bool ], - # EAPI int ecore_getopt_parse(const Ecore_Getopt *parser, Ecore_Getopt_Value *values, int argc, char **argv); - [ :ecore_getopt_parse, [ :ecore_getopt_p, :ecore_getopt_value_p, :int, :string_array ], :int ], - # EAPI Eina_List *ecore_getopt_list_free(Eina_List *list); - [ :ecore_getopt_list_free, [ :eina_list_p ], :eina_list_p ], - # EAPI Eina_Bool ecore_getopt_callback_geometry_parse(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, const char *str, void *data, Ecore_Getopt_Value *storage); - [ :ecore_getopt_callback_geometry_parse, [ :ecore_getopt_p, :ecore_getopt_desc_p, :string, :void_p, :ecore_getopt_value_p ], :eina_bool ], - # EAPI Eina_Bool ecore_getopt_callback_size_parse(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, const char *str, void *data, Ecore_Getopt_Value *storage); - [ :ecore_getopt_callback_size_parse, [ :ecore_getopt_p, :ecore_getopt_desc_p, :string, :void_p, :ecore_getopt_value_p ], :eina_bool ], - ] - # - attach_fcts fcts - # - end -end -# -# EOF |