summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/efl/elementary_all.rb1
-rw-r--r--lib/efl/native/elm/elm_need.rb41
-rwxr-xr-xtools/genruby.rb2
3 files changed, 42 insertions, 2 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb
index bdb75d6..c38ff79 100644
--- a/lib/efl/elementary_all.rb
+++ b/lib/efl/elementary_all.rb
@@ -59,7 +59,6 @@ require 'efl/elm/elm_menu'
require 'efl/elm/elm_mirroring'
require 'efl/elm/elm_multibuttonentry'
require 'efl/elm/elm_naviframe'
-#require 'efl/elm/elm_need'
require 'efl/elm/elm_notify'
require 'efl/elm/elm_pager'
require 'efl/elm/elm_panel'
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
diff --git a/tools/genruby.rb b/tools/genruby.rb
index fd64127..87a41c4 100755
--- a/tools/genruby.rb
+++ b/tools/genruby.rb
@@ -414,7 +414,7 @@ libs << elm_h('elm_layout.h', 'ElmLayout')
#libs << elm_h('elm_map.h', 'ElmX')
libs << elm_h('elm_menu.h', 'ElmMenu')
libs << elm_h('elm_mirroring.h', 'ElmMirroring')
-#libs << elm_h('elm_need.h', 'ElmX')
+libs << elm_h('elm_need.h', 'ElmNeed')
libs << elm_h('elm_notify.h', 'ElmNotify')
libs << elm_h('elm_pager.h', 'ElmPager')
libs << elm_h('elm_panel.h', 'ElmPanel')