diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-20 15:24:11 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-20 15:24:11 +0200 |
commit | 9a7cd18cd11e0f435443c62fa68871768b98d248 (patch) | |
tree | 1e34d56e4f5ad7cd1908ab6155cbcd7fc60bdee5 /lib/efl/eina | |
parent | 5a5e81dbf79ca4967b150ea4930255a2398ccab4 (diff) | |
download | ffi-efl-9a7cd18cd11e0f435443c62fa68871768b98d248.zip ffi-efl-9a7cd18cd11e0f435443c62fa68871768b98d248.tar.gz |
ffi-e17 renamed to ffi-efl
Diffstat (limited to 'lib/efl/eina')
-rw-r--r-- | lib/efl/eina/eina_types-ffi.rb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/efl/eina/eina_types-ffi.rb b/lib/efl/eina/eina_types-ffi.rb new file mode 100644 index 0000000..e0e72ab --- /dev/null +++ b/lib/efl/eina/eina_types-ffi.rb @@ -0,0 +1,44 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/ffi' +# +module Efl + # + module Einatypes + def self.method_missing m, *args, &block + return Efl::API.send 'eina_types_'+m.to_s, *args, &block + end + end + # + module API + # + # + ffi_lib 'eina' + # + # ENUMS + # + # TYPEDEFS + # typedef unsigned char Eina_Bool; + typedef :bool, :eina_bool + typedef :pointer, :eina_bool_p + # + # CALLBACKS + # typedef int (*Eina_Compare_Cb) (const void *data1, const void *data2); + callback :eina_compare_cb, [ :void_p, :void_p ], :int + # typedef Eina_Bool (*Eina_Each_Cb) (const void *container, void *data, void *fdata); + callback :eina_each_cb, [ :void_p, :void_p, :void_p ], :eina_bool + # typedef void (*Eina_Free_Cb) (void *data); + callback :eina_free_cb, [ :void_p ], :void + # + # FUNCTIONS + fcts = [ + # EAPI extern const unsigned int eina_prime_table[]; + # FIXME + ] + # + attach_fcts fcts + end +end +# +# EOF |