summaryrefslogtreecommitdiffstats
path: root/lib/e17/ecore.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy.zurcher@heraeus.com>2011-04-14 11:33:34 +0200
committerJérémy Zurcher <jeremy.zurcher@heraeus.com>2011-04-14 11:33:34 +0200
commit7c81dca1f858bdc876242b77b1e12e66247012d2 (patch)
treeff7ace586280d19cef7cf2d99897fca4ef141358 /lib/e17/ecore.rb
parente6f1c06f74fee4fb0c82100f61b0edf108abb1be (diff)
downloadffi-efl-7c81dca1f858bdc876242b77b1e12e66247012d2.zip
ffi-efl-7c81dca1f858bdc876242b77b1e12e66247012d2.tar.gz
use typedef in ecore
Diffstat (limited to 'lib/e17/ecore.rb')
-rw-r--r--lib/e17/ecore.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/e17/ecore.rb b/lib/e17/ecore.rb
index 95a6d04..7df5814 100644
--- a/lib/e17/ecore.rb
+++ b/lib/e17/ecore.rb
@@ -11,6 +11,8 @@ module E17
#
ffi_lib 'ecore'
#
+ typedef :pointer, :ecore_pipe
+ #
callback :ecore_pipe_cb, [:pointer, :pointer, :int], :void
callback :ecore_select_function, [:int, :pointer, :pointer, :pointer, :pointer], :int
callback :ecore_fd_prep_cb, [:pointer, :pointer], :void
@@ -19,11 +21,11 @@ module E17
# http://docs.enlightenment.org/auto/ecore/group__Ecore__Group.html
[ :ecore_init, [], :int],
[ :ecore_shutdown, [], :int],
- [ :ecore_pipe_add, [:ecore_pipe_cb, :pointer], :pointer],
- [ :ecore_pipe_del, [:pointer], :pointer],
- [ :ecore_pipe_read_close, [:pointer], :void],
- [ :ecore_pipe_write_close, [:pointer], :void],
- [ :ecore_pipe_write, [:pointer, :pointer, :int], :bool],
+ [ :ecore_pipe_add, [:ecore_pipe_cb, :pointer], :ecore_pipe],
+ [ :ecore_pipe_del, [:ecore_pipe], :pointer],
+ [ :ecore_pipe_read_close, [:ecore_pipe], :void],
+ [ :ecore_pipe_write_close, [:ecore_pipe], :void],
+ [ :ecore_pipe_write, [:ecore_pipe, :pointer, :int], :bool],
# http://docs.enlightenment.org/auto/ecore/group__Ecore__Main__Loop__Group.html
[ :ecore_main_loop_iterate, [], :void],
[ :ecore_main_loop_begin, [], :void],