summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/efreet.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-12-21 15:06:24 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-12-21 15:06:24 +0100
commit0bfdb220d9c00401ed5e7799f4a36dc18ccdccba (patch)
tree1436b7e44314e1773fc95f7d5b6a32645c11c01a /lib/efl/native/efreet.rb
parent8def4d0a8a4b676c2ef854afae3b9cf3bf71728b (diff)
downloadffi-efl-0bfdb220d9c00401ed5e7799f4a36dc18ccdccba.zip
ffi-efl-0bfdb220d9c00401ed5e7799f4a36dc18ccdccba.tar.gz
take care of Efreet.h
Diffstat (limited to 'lib/efl/native/efreet.rb')
-rw-r--r--lib/efl/native/efreet.rb46
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/efl/native/efreet.rb b/lib/efl/native/efreet.rb
new file mode 100644
index 0000000..0484c35
--- /dev/null
+++ b/lib/efl/native/efreet.rb
@@ -0,0 +1,46 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+#
+module Efl
+ #
+ module Efreet
+ #
+ FCT_PREFIX = 'efreet_' 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_Version Efreet_Version;
+ typedef :pointer, :efreet_version
+ #
+ # VARIABLES
+ # EAPI extern Efreet_Version *efreet_version;
+ attach_variable :efreet_version, :efreet_version
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI int efreet_init(void);
+ [ :efreet_init, [ ], :int ],
+ # EAPI int efreet_shutdown(void);
+ [ :efreet_shutdown, [ ], :int ],
+ # EAPI void efreet_lang_reset(void);
+ [ :efreet_lang_reset, [ ], :void ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF