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;
34 } AccessibleKeystroke;
37 * Function prototype typedefs for Event Listener Callbacks.
38 * (see libspi/accessibleeventlistener.h for definition of SpiVoidEventListenerCB).
40 * usage: signatures should be
41 * void (*AccessibleEventListenerCB) (AccessibleEvent *event);
43 * SPIBoolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystrokeEvent *Event);
45 typedef void (*AccessibleEventListenerCB) (AccessibleEvent *event,
47 typedef SPIBoolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystroke *stroke,