1 #ifndef _SPI_LISTENER_H_
2 #define _SPI_LISTENER_H_
4 #include <cspi/spi-impl.h>
11 * Structure used to encapsulate event information
21 SPI_KEY_PRESSED = 1<<0,
22 SPI_KEY_RELEASED = 1<<1
23 } AccessibleKeyEventType;
31 AccessibleKeyEventType type;
32 unsigned short modifiers;
33 } AccessibleKeystroke;
36 * Function prototype typedefs for Event Listener Callbacks.
37 * (see libspi/accessibleeventlistener.h for definition of SpiVoidEventListenerCB).
39 * usage: signatures should be
40 * void (*AccessibleEventListenerCB) (AccessibleEvent *event);
42 * SPIBoolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystrokeEvent *Event);
44 typedef void (*AccessibleEventListenerCB) (AccessibleEvent *event,
46 typedef SPIBoolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystroke *stroke,