summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_engine.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-29 17:20:58 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-29 17:20:58 +0100
commit98d55fbd699d281dc416990eb55a5d876c9d12d3 (patch)
tree764913a03ee9501415d0e36d8f5b551cab06b5bf /lib/efl/native/elm/elm_engine.rb
parent12f90a99542647e2c18c69702cc9c83fc2920059 (diff)
downloadffi-efl-98d55fbd699d281dc416990eb55a5d876c9d12d3.zip
ffi-efl-98d55fbd699d281dc416990eb55a5d876c9d12d3.tar.gz
parse elm_engine.h, generate elm_engine.rb
Diffstat (limited to 'lib/efl/native/elm/elm_engine.rb')
-rw-r--r--lib/efl/native/elm/elm_engine.rb41
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_engine.rb b/lib/efl/native/elm/elm_engine.rb
new file mode 100644
index 0000000..5690d7b
--- /dev/null
+++ b/lib/efl/native/elm/elm_engine.rb
@@ -0,0 +1,41 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmEngine
+ #
+ FCT_PREFIX = 'elm_engine_' 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 const char *elm_engine_get(void);
+ [ :elm_engine_get, [ ], :string ],
+ # EAPI void elm_engine_set(const char *engine);
+ [ :elm_engine_set, [ :string ], :void ],
+ # EAPI const char *elm_preferred_engine_get(void);
+ [ :elm_preferred_engine_get, [ ], :string ],
+ # EAPI void elm_preferred_engine_set(const char *engine);
+ [ :elm_preferred_engine_set, [ :string ], :void ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF