diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-19 17:48:50 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-19 17:48:50 +0200 |
commit | 1885a987a7d9178b51c6e447dc3bb0fc8ac325ea (patch) | |
tree | 43c05dd7e1ae279699dc0e6f3f1349f20ca57a15 /lib/e17 | |
parent | fc35c3abd3ea359e6977b5cd59118db5b9b09a51 (diff) | |
download | ffi-efl-1885a987a7d9178b51c6e447dc3bb0fc8ac325ea.zip ffi-efl-1885a987a7d9178b51c6e447dc3bb0fc8ac325ea.tar.gz |
add ecore event specs
Diffstat (limited to 'lib/e17')
-rw-r--r-- | lib/e17/ecore.rb | 9 | ||||
-rw-r--r-- | lib/e17/ecore/event.rb | 54 |
2 files changed, 9 insertions, 54 deletions
diff --git a/lib/e17/ecore.rb b/lib/e17/ecore.rb index fe4786f..b0be458 100644 --- a/lib/e17/ecore.rb +++ b/lib/e17/ecore.rb @@ -6,6 +6,15 @@ require 'e17/ecore/ecore-ffi' module E17 module Ecore # + # ecore-1/Ecore.h line 95 + EVENT_NONE = 0 + EVENT_SIGNAL_USER = 1 # User signal event + EVENT_SIGNAL_HUP = 2 # Hup signal event + EVENT_SIGNAL_EXIT = 3 # Exit signal event + EVENT_SIGNAL_POWER = 4 # Power signal event + EVENT_SIGNAL_REALTIME = 5 # Realtime signal event + EVENT_COUNT = 6 + # class EcorePipe def initialize cb, data @ptr = E17::API.ecore_pipe_add cb, data diff --git a/lib/e17/ecore/event.rb b/lib/e17/ecore/event.rb deleted file mode 100644 index 56b5c69..0000000 --- a/lib/e17/ecore/event.rb +++ /dev/null @@ -1,54 +0,0 @@ -#! /usr/bin/env ruby -# -*- coding: UTF-8 -*- -# -require 'e17/ffi_helper' -# -module E17 - module ECORE - # - extend FFIHelper - extend FFI::Library - # - ffi_lib 'ecore' - # -# enum :ecore_signals, [:none,0,:signal_user,:signal_hup,:signal_exit,:signal_power,:signal_realtime] - EVENT_NONE = 0 - EVENT_SIGNAL_USER = 1 # User signal event - EVENT_SIGNAL_HUP = 2 # Hup signal event - EVENT_SIGNAL_EXIT = 3 # Exit signal event - EVENT_SIGNAL_POWER = 4 # Power signal event - 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 - callback :ecore_event_handler_cb, [:pointer, :int, :pointer], :bool - # - fcts = [ - # http://docs.enlightenment.org/auto/ecore/group__Ecore__Event__Group.html - [ :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], :ecore_event_filter], - [ :ecore_event_filter_del, [:ecore_event_filter], :pointer], - [ :ecore_event_current_type_get, [], :int], - [ :ecore_event_current_event_get, [], :pointer], - ] - # - attach_fcts fcts - # - create_aliases 'ecore_'.length, fcts - # - end -end -# -# EOF |