summaryrefslogtreecommitdiffstats
path: root/lib/efl/ecore_getopt.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-23 17:19:17 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-23 17:19:17 +0100
commit37d5e4861d4e1e7edf7785e5f77392d8b3abb591 (patch)
treed0d726db212a610d7e65434b4159568734c6212b /lib/efl/ecore_getopt.rb
parent94fbd4cd14bd1abe0511c1a0c6ce670b460ba3ac (diff)
downloadffi-efl-37d5e4861d4e1e7edf7785e5f77392d8b3abb591.zip
ffi-efl-37d5e4861d4e1e7edf7785e5f77392d8b3abb591.tar.gz
update ecore_* native, and specs
Diffstat (limited to 'lib/efl/ecore_getopt.rb')
-rw-r--r--lib/efl/ecore_getopt.rb23
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/efl/ecore_getopt.rb b/lib/efl/ecore_getopt.rb
index e403e22..bda40af 100644
--- a/lib/efl/ecore_getopt.rb
+++ b/lib/efl/ecore_getopt.rb
@@ -1,6 +1,7 @@
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-
#
+require 'efl'
require 'efl/native/ecore_getopt'
#
module Efl
@@ -9,16 +10,16 @@ module Efl
#
class EcoreGetoptValue < FFI::Union
layout :strp, :pointer,
- :boolp, :eina_bool_p,
- :shortp, :short_p,
- :intp, :int_p,
- :longp, :long_p,
- :ushortp, :ushort_p,
- :uintp, :uint_p,
- :ulongp, :ulong_p,
- :doublep, :double_p,
- :listp, :eina_list_p,
- :ptrp, :void_p
+ :boolp, :pointer,
+ :shortp, :pointer,
+ :intp, :pointer,
+ :longp, :pointer,
+ :ushortp, :pointer,
+ :uintp, :pointer,
+ :ulongp, :pointer,
+ :doublep, :pointer,
+ :listp, :pointer,
+ :ptrp, :pointer
def value_ptr idx
Native::EcoreGetoptValue.new to_ptr+(idx*Native::EcoreGetoptValue.size)
@@ -43,7 +44,7 @@ module Efl
:def, EcoreGetoptDescStoreDef
end
#
- callback :ecore_getopt_desc_cb, [:ecore_getopt_p, :ecore_getopt_desc_p, :string, :pointer, :ecore_getopt_value_p ], :eina_bool
+ callback :ecore_getopt_desc_cb, [:pointer, :pointer, :string, :pointer, :pointer ], :eina_bool
#
class EcoreGetoptDescCallback < FFI::Struct
layout :func, :ecore_getopt_desc_cb,