diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-27 16:02:06 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-27 16:02:06 +0200 |
commit | 2806b37dc8f9721ac5e84755654b6b6d4ebad5a9 (patch) | |
tree | 1cb852f1df396cd13a52af43113ff1809fedf96f /lib/efl | |
parent | 1b74b7c89c394b4c6d6c73e3ccf9e75cac5d4fcb (diff) | |
download | ffi-efl-2806b37dc8f9721ac5e84755654b6b6d4ebad5a9.zip ffi-efl-2806b37dc8f9721ac5e84755654b6b6d4ebad5a9.tar.gz |
add eina_main and specs
Diffstat (limited to 'lib/efl')
-rw-r--r-- | lib/efl/eina.rb | 6 | ||||
-rw-r--r-- | lib/efl/ffi/eina_main.rb | 45 |
2 files changed, 51 insertions, 0 deletions
diff --git a/lib/efl/eina.rb b/lib/efl/eina.rb new file mode 100644 index 0000000..5141853 --- /dev/null +++ b/lib/efl/eina.rb @@ -0,0 +1,6 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/ffi/eina_main' +# +# EOF diff --git a/lib/efl/ffi/eina_main.rb b/lib/efl/ffi/eina_main.rb new file mode 100644 index 0000000..6d09164 --- /dev/null +++ b/lib/efl/ffi/eina_main.rb @@ -0,0 +1,45 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/ffi' +# +module Efl + # + module Eina + def self.method_missing m, *args, &block + return Efl::FFI.send 'eina_'+m.to_s, *args, &block + end + end + # + module FFI + # + # + ffi_lib 'eina' + # + # ENUMS + # + # TYPEDEFS + # typedef struct _Eina_Version Eina_Version; + typedef :pointer, :eina_version + # + # CALLBACKS + # + # FUNCTIONS + fcts = [ + # EAPI extern Eina_Version *eina_version; + # FIXME + # EAPI int eina_init(void); + [ :eina_init, [ ], :int ], + # EAPI int eina_shutdown(void); + [ :eina_shutdown, [ ], :int ], + # EAPI int eina_threads_init(void); + [ :eina_threads_init, [ ], :int ], + # EAPI int eina_threads_shutdown(void); + [ :eina_threads_shutdown, [ ], :int ], + ] + # + attach_fcts fcts + end +end +# +# EOF |