summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_debug.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-28 15:58:55 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-28 15:58:55 +0100
commit7ed7256e9716118f0e9d8bc728c006bcf1f3cbf8 (patch)
tree701d18fd4a2300bc63e63ce430fc7d175274f998 /lib/efl/native/elm/elm_debug.rb
parent06ea8f41dfe38ffc35098362ee7f754a014fa481 (diff)
downloadffi-efl-7ed7256e9716118f0e9d8bc728c006bcf1f3cbf8.zip
ffi-efl-7ed7256e9716118f0e9d8bc728c006bcf1f3cbf8.tar.gz
parse elm_debug.h, generate elm_debug.rb
Diffstat (limited to 'lib/efl/native/elm/elm_debug.rb')
-rw-r--r--lib/efl/native/elm/elm_debug.rb37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_debug.rb b/lib/efl/native/elm/elm_debug.rb
new file mode 100644
index 0000000..5aa52dc
--- /dev/null
+++ b/lib/efl/native/elm/elm_debug.rb
@@ -0,0 +1,37 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmDebug
+ #
+ FCT_PREFIX = 'elm_debug_' 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 void elm_object_tree_dump(const Evas_Object *top);
+ [ :elm_object_tree_dump, [ :evas_object ], :void ],
+ # EAPI void elm_object_tree_dot_dump(const Evas_Object *top, const char *file);
+ [ :elm_object_tree_dot_dump, [ :evas_object, :string ], :void ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF