summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-28 12:27:49 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-28 12:27:49 +0100
commite2fa9dcf9bf6b3ef5428f1cc13feacb2cfd0e6a9 (patch)
treeda5a0f3d706cca61fb348fde0d16134c482559c4 /lib/efl/native/elm
parent7d35dcd880d9c29c40b853c88a44cf0cd685d16e (diff)
downloadffi-efl-e2fa9dcf9bf6b3ef5428f1cc13feacb2cfd0e6a9.zip
ffi-efl-e2fa9dcf9bf6b3ef5428f1cc13feacb2cfd0e6a9.tar.gz
parse elm_need.h, generate elm_need.rb
Diffstat (limited to 'lib/efl/native/elm')
-rw-r--r--lib/efl/native/elm/elm_need.rb41
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_need.rb b/lib/efl/native/elm/elm_need.rb
new file mode 100644
index 0000000..7e055b0
--- /dev/null
+++ b/lib/efl/native/elm/elm_need.rb
@@ -0,0 +1,41 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmNeed
+ #
+ FCT_PREFIX = 'elm_need_' 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 'elementary-ver-pre-svn-09.so.0'
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI Eina_Bool elm_need_efreet(void);
+ [ :elm_need_efreet, [ ], :bool ],
+ # EAPI Eina_Bool elm_need_e_dbus(void);
+ [ :elm_need_e_dbus, [ ], :bool ],
+ # EAPI Eina_Bool elm_need_ethumb(void);
+ [ :elm_need_ethumb, [ ], :bool ],
+ # EAPI Eina_Bool elm_need_web(void);
+ [ :elm_need_web, [ ], :bool ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF