summaryrefslogtreecommitdiffstats
path: root/lib/e17/ecore/event.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/event.rb
parente6f1c06f74fee4fb0c82100f61b0edf108abb1be (diff)
downloadffi-efl-7c81dca1f858bdc876242b77b1e12e66247012d2.zip
ffi-efl-7c81dca1f858bdc876242b77b1e12e66247012d2.tar.gz
use typedef in ecore
Diffstat (limited to 'lib/e17/ecore/event.rb')
-rw-r--r--lib/e17/ecore/event.rb20
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/e17/ecore/event.rb b/lib/e17/ecore/event.rb
index 9465d16..56b5c69 100644
--- a/lib/e17/ecore/event.rb
+++ b/lib/e17/ecore/event.rb
@@ -20,6 +20,10 @@ module E17
EVENT_SIGNAL_REALTIME = 5 # Realtime signal event
EVENT_COUNT = 6
#
+ typedef :pointer, :ecore_event
+ typedef :pointer, :ecore_event_filter
+ typedef :pointer, :ecore_event_handler
+ #
callback :ecore_end_cb, [:pointer, :pointer], :void
callback :ecore_data_cb, [:pointer], :pointer
callback :ecore_filter_cb, [:pointer, :pointer, :int, :pointer], :bool
@@ -27,15 +31,15 @@ module E17
#
fcts = [
# http://docs.enlightenment.org/auto/ecore/group__Ecore__Event__Group.html
- [ :ecore_event_handler_add, [:int, :ecore_event_handler_cb, :pointer], :pointer],
- [ :ecore_event_handler_del, [:pointer], :pointer],
- [ :ecore_event_add, [:int, :pointer, :ecore_end_cb, :pointer], :pointer],
- [ :ecore_event_del, [:pointer], :pointer],
- [ :ecore_event_handler_data_get, [:pointer], :pointer],
- [ :ecore_event_handler_data_set, [:pointer,:pointer], :pointer],
+ [ :ecore_event_handler_add, [:int, :ecore_event_handler_cb, :pointer], :ecore_event_handler],
+ [ :ecore_event_handler_del, [:ecore_event_handler], :pointer],
+ [ :ecore_event_add, [:int, :pointer, :ecore_end_cb, :pointer], :ecore_event],
+ [ :ecore_event_del, [:ecore_event], :pointer],
+ [ :ecore_event_handler_data_get, [:ecore_event_handler], :pointer],
+ [ :ecore_event_handler_data_set, [:ecore_event_handler, :pointer], :pointer],
[ :ecore_event_type_new, [], :int],
- [ :ecore_event_filter_add, [:ecore_data_cb, :ecore_filter_cb, :ecore_end_cb, :pointer], :pointer],
- [ :ecore_event_filter_del, [:pointer], :pointer],
+ [ :ecore_event_filter_add, [:ecore_data_cb, :ecore_filter_cb, :ecore_end_cb, :pointer], :ecore_event_filter],
+ [ :ecore_event_filter_del, [:ecore_event_filter], :pointer],
[ :ecore_event_current_type_get, [], :int],
[ :ecore_event_current_event_get, [], :pointer],
]