summaryrefslogtreecommitdiff
path: root/cspi/spi-listener.h
blob: e30d0b4c0c19f605c64844ff1127d0e0d782ba59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _SPI_LISTENER_H_
#define _SPI_LISTENER_H_


#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include "accessibleeventlistener.h"
#include "keystrokelistener.h"


/*
 *
 * Structure used to encapsulate event information
 *
 */

typedef Accessibility_Event AccessibleEvent;

/*
 *
 * Function prototype typedefs for Event Listener Callbacks.
 * (see libspi/accessibleeventlistener.h for definition of VoidEventListenerCB).
 *
 * usage: signatures should be
 * void (*AccessibleEventListenerCB) (AccessibleEvent *event);
 *
 * boolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystrokeEvent *Event);
 */

typedef VoidEventListenerCB AccessibleEventListenerCB;
typedef BooleanKeystrokeListenerCB AccessibleKeystrokeListenerCB;

#ifdef __cplusplus
}
#endif /* __cplusplus */


#endif