summaryrefslogtreecommitdiffstats
path: root/lib/efl/ffi/eina.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-04 23:42:07 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-04 23:42:07 +0200
commite4baccaefd209a25daa3ff8d5277fe86aca1d379 (patch)
treeeb2744b7a8624a7538cb0224d40879074c819653 /lib/efl/ffi/eina.rb
parent3974ea1fb3734cbf4150c759eebdf8a93d77dc8b (diff)
downloadffi-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/eina.rb')
-rw-r--r--lib/efl/ffi/eina.rb48
1 files changed, 0 insertions, 48 deletions
diff --git a/lib/efl/ffi/eina.rb b/lib/efl/ffi/eina.rb
deleted file mode 100644
index 8ecfd4e..0000000
--- a/lib/efl/ffi/eina.rb
+++ /dev/null
@@ -1,48 +0,0 @@
-#! /usr/bin/env ruby
-# -*- coding: UTF-8 -*-
-#
-require 'efl/ffi'
-#
-module Efl
- #
- module Eina
- #
- extend Efl::FFIHelper
- #
- def self.method_missing m, *args, &block
- sym = 'eina_'+m.to_s
- raise NameError.new "#{self.name}.#{sym} (#{m})" if not self.respond_to? sym
- self.module_eval "def self.#{m} *args, &block; r=self.#{sym}(*args); yield r if block_given?; r; end"
- self.send sym, *args, &block
- end
- #
- 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