Added makefile support for cspi directory.
[platform/core/uifw/at-spi2-atk.git] / cspi / spi-listener.h
1 #ifndef _SPI_LISTENER_H_
2 #define _SPI_LISTENER_H_
3
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif /* __cplusplus */
8
9 #include "accessibleeventlistener.h"
10
11 /*
12  *
13  * Structure used to encapsulate event information
14  *
15  */
16
17 typedef struct _AccessibleEvent {
18   Accessible *source;
19   char *type;
20   char *detail1;
21   char *detail2;
22 } AccessibleEvent;
23
24 /*
25  *
26  * Function prototype typedefs for Event Listener Callbacks.
27  * (see libspi/accessibleeventlistener.h for definition of VoidEventListenerCB).
28  *
29  * usage: signatures should be
30  * void (*AccessibleEventListenerCB) (AccessibleEvent *event);
31  *
32  * void (*KeystrokeListenerCB) (KeystrokeEvent *Event);
33  */
34
35 typedef VoidEventListenerCB AccessibleEventListenerCB;
36 typedef VoidEventListenerCB KeystrokeListenerCB;
37
38 typedef struct _KeystrokeListener {
39    KeystrokeListenerCB callback;
40 } KeystrokeListener;
41
42 #ifdef __cplusplus
43 }
44 #endif /* __cplusplus */
45
46
47 #endif