summaryrefslogtreecommitdiffstats
path: root/lib/efl
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-11 23:07:16 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-11 23:07:16 +0200
commit846ea53d8844b42ac85bcf3a4c8307212c2c5075 (patch)
tree1d4f651bc309726be5573b4f7f16e2e6a25fc0bb /lib/efl
parent9c39aee51c91457ee9177fabca8a6689a8d8d05a (diff)
downloadffi-efl-846ea53d8844b42ac85bcf3a4c8307212c2c5075.zip
ffi-efl-846ea53d8844b42ac85bcf3a4c8307212c2c5075.tar.gz
add main_loop function to ecore
Diffstat (limited to 'lib/efl')
-rw-r--r--lib/efl/ecore.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/efl/ecore.rb b/lib/efl/ecore.rb
index 209d7a5..5583a5a 100644
--- a/lib/efl/ecore.rb
+++ b/lib/efl/ecore.rb
@@ -8,12 +8,17 @@ module EFL
#
extend FFI::Library
#
+ callback:ecore_select_function, [ :int, :pointer, :pointer, :pointer, :pointer], :int
+ #
ffi_lib 'ecore'
functions = [
[ :ecore_init, [ ], :int ],
[ :ecore_shutdown, [], :int ],
+ [ :ecore_main_loop_iterate, [], :void],
[ :ecore_main_loop_begin, [], :void],
[ :ecore_main_loop_quit, [], :void],
+ [ :ecore_main_loop_select_func_set, [], :void], # TODO spec
+ [ :ecore_main_loop_select_func_get, [], :void], # TODO spec
].each do |func|
begin
attach_function *func
@@ -25,8 +30,11 @@ module EFL
class << self
alias init ecore_init
alias shutdown ecore_shutdown
+ alias main_loop_iterate ecore_main_loop_iterate
alias main_loop_begin ecore_main_loop_begin
alias main_loop_quit ecore_main_loop_quit
+ alias main_loop_select_func_set ecore_main_loop_select_func_set
+ alias main_loop_select_func_get ecore_main_loop_select_func_get
end
#
end