1 #ifndef _SPI_LISTENER_H_
2 #define _SPI_LISTENER_H_
4 #include <cspi/spi-impl.h>
9 * Structure used to encapsulate event information
19 SPI_KEY_PRESSED = 1<<0,
20 SPI_KEY_RELEASED = 1<<1
21 } AccessibleKeyEventType;
28 AccessibleKeyEventType type;
29 unsigned short modifiers;
30 } AccessibleKeystroke;
33 * Function prototype typedefs for Event Listener Callbacks.
34 * (see libspi/accessibleeventlistener.h for definition of SpiVoidEventListenerCB).
36 * usage: signatures should be
37 * void (*AccessibleEventListenerCB) (AccessibleEvent *event);
39 * SPIBoolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystrokeEvent *Event);
41 typedef void (*AccessibleEventListenerCB) (AccessibleEvent *event,
43 typedef SPIBoolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystroke *stroke,