summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/efl/ecore/ecore_evas.rb13
-rw-r--r--lib/efl/ffi.rb7
-rw-r--r--lib/efl/ffi/ecore/ecore_evas.rb2
-rw-r--r--spec/ecore/ecore_evas_spec.rb24
-rwxr-xr-xtools/genruby.rb2
5 files changed, 46 insertions, 2 deletions
diff --git a/lib/efl/ecore/ecore_evas.rb b/lib/efl/ecore/ecore_evas.rb
new file mode 100644
index 0000000..32b4d4e
--- /dev/null
+++ b/lib/efl/ecore/ecore_evas.rb
@@ -0,0 +1,13 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/ffi/ecore/ecore_evas'
+#
+module Efl
+ module EcoreEvas
+ #
+ #
+ end
+end
+#
+# EOF
diff --git a/lib/efl/ffi.rb b/lib/efl/ffi.rb
index 70ba4ef..82ee537 100644
--- a/lib/efl/ffi.rb
+++ b/lib/efl/ffi.rb
@@ -35,11 +35,18 @@ module Efl
typedef :pointer, :void_p
typedef :pointer, :string_array
typedef :pointer, :string_array_p
+ typedef :uint_p, :uintptr_t
#
typedef :pointer, :eina_list_p
typedef :pointer, :eina_hash_p
typedef :pointer, :eina_iterator_p
typedef :pointer, :eina_accessor_p
+ typedef :pointer, :evas_p
+ typedef :pointer, :evas_object_p
+ typedef :pointer, :evas_object_pp
+ typedef :pointer, :ecore_getopt_p
+ typedef :pointer, :ecore_getopt_desc_p
+ typedef :pointer, :ecore_getopt_value_p
#
end
#
diff --git a/lib/efl/ffi/ecore/ecore_evas.rb b/lib/efl/ffi/ecore/ecore_evas.rb
index baa1568..7231897 100644
--- a/lib/efl/ffi/ecore/ecore_evas.rb
+++ b/lib/efl/ffi/ecore/ecore_evas.rb
@@ -7,7 +7,7 @@ module Efl
#
module EcoreEvas
def self.method_missing m, *args, &block
- return Efl::FFI.send 'ecore_'+m.to_s, *args, &block
+ return Efl::FFI.send 'ecore_evas_'+m.to_s, *args, &block
end
end
#
diff --git a/spec/ecore/ecore_evas_spec.rb b/spec/ecore/ecore_evas_spec.rb
new file mode 100644
index 0000000..c380613
--- /dev/null
+++ b/spec/ecore/ecore_evas_spec.rb
@@ -0,0 +1,24 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/ecore/ecore_evas'
+#
+describe Efl::EcoreEvas do
+ #
+ before(:all) do
+ EcoreEvas = Efl::EcoreEvas
+ end
+ #
+ it "should init" do
+ EcoreEvas.init.should eql 1
+ EcoreEvas.init.should eql 2
+ EcoreEvas.init.should eql 3
+ end
+ #
+ it "should shutdown" do
+ EcoreEvas.shutdown.should eql 2
+ EcoreEvas.shutdown.should eql 1
+ EcoreEvas.shutdown.should eql 0
+ end
+ #
+end
diff --git a/tools/genruby.rb b/tools/genruby.rb
index 3fe31a5..2b00004 100755
--- a/tools/genruby.rb
+++ b/tools/genruby.rb
@@ -19,7 +19,7 @@ libraries = [
# [ 'Ecore_Con.h', 'EcoreCon', 'ecore_con', 'ecore', 'ecore/ecore_con.rb' ],
[ 'Ecore_Input.h', 'EcoreInput', 'ecore_event', 'ecore_input', 'ecore/ecore_input.rb' ],
[ 'Ecore_Getopt.h', 'EcoreGetopt', 'ecore_getopt', 'ecore', 'ecore/ecore_getopt.rb' ],
- [ 'Ecore_Evas.h', 'EcoreEvas', 'ecore', 'ecore_evas', 'ecore/ecore_evas.rb' ],
+ [ 'Ecore_Evas.h', 'EcoreEvas', 'ecore_evas', 'ecore_evas', 'ecore/ecore_evas.rb' ],
# [ 'Ecore_Fb.h', 'EcoreFb', 'ecore', 'ecore', 'ecore/ecore_fb.rb' ],
# [ 'Ecore_File.h', 'EcoreFile', 'ecore', 'ecore', 'ecore/ecore_file.rb' ],
[ 'Elementary.h', 'Elm', 'elm', 'libelementary-ver-pre-svn-09.so.0', 'elementary.rb' ],