summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-22 17:59:51 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-22 17:59:51 +0100
commitbb84047c45fda4c5ac9b92e4feff16054e603e87 (patch)
treee86e8aaa927569d5b6331346248758efc1520df4
parent7282cc40ff17f2f84314ce1b9c55ab45093dd100 (diff)
downloadffi-efl-bb84047c45fda4c5ac9b92e4feff16054e603e87.zip
ffi-efl-bb84047c45fda4c5ac9b92e4feff16054e603e87.tar.gz
tools/genruby:Eina_Bool=>:eina_bool, lib/efl/native typedef :bool, :eina_bool
-rw-r--r--lib/efl/native.rb2
-rwxr-xr-xtools/genruby.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/efl/native.rb b/lib/efl/native.rb
index 3b3dcce..24b336c 100644
--- a/lib/efl/native.rb
+++ b/lib/efl/native.rb
@@ -9,6 +9,8 @@ module Efl
#
extend FFI::Library
#
+ typedef :bool, :eina_bool
+ #
def self.attach_fcts fcts
fcts.each do |func|
begin
diff --git a/tools/genruby.rb b/tools/genruby.rb
index dc44779..dbc51c5 100755
--- a/tools/genruby.rb
+++ b/tools/genruby.rb
@@ -85,7 +85,7 @@ TYPES = {
'struct tm *' => ':pointer',
'struct timeval *' => ':pointer',
'struct sockaddr *' => ':pointer',
- 'Eina_Bool' => ':bool'
+ 'Eina_Bool' => ':eina_bool'
}
#
TYPES_USAGE = {}