summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 = {}