Added additional documentation and fixed a couple of latent bugs.
[platform/core/uifw/at-spi2-atk.git] / cspi / spi-listener.h
index 5c39a3d..678ad55 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SPI_SPI_LISTENER_H_
-#define _SPI_SPI_LISTENER_H_
+#ifndef _SPI_LISTENER_H_
+#define _SPI_LISTENER_H_
 
 
 #ifdef __cplusplus
@@ -9,6 +9,8 @@ extern "C" {
 #include "accessibleeventlistener.h"
 #include "keystrokelistener.h"
 
+#define SPI_KEYSET_ALL_KEYS ((void *)NULL)
+
 
 /*
  *
@@ -16,21 +18,21 @@ extern "C" {
  *
  */
 
-typedef Accessibility_Event SpiAccessibleEvent;
+typedef Accessibility_Event AccessibleEvent;
 
 /*
  *
- * Function prototype typedefs for Event SpiListener Callbacks.
- * (see libspi/accessibleeventlistener.h for definition of VoidEventListenerCB).
+ * Function prototype typedefs for Event Listener Callbacks.
+ * (see libspi/accessibleeventlistener.h for definition of SpiVoidEventListenerCB).
  *
  * usage: signatures should be
- * void (*SpiAccessibleEventListenerCB) (SpiAccessibleEvent *event);
+ * void (*AccessibleEventListenerCB) (AccessibleEvent *event);
  *
- * boolean (*KeystrokeListenerCB) (KeystrokeEvent *Event);
+ * boolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystrokeEvent *Event);
  */
 
-typedef VoidEventListenerCB SpiAccessibleEventListenerCB;
-typedef BooleanKeystrokeListenerCB KeystrokeListenerCB;
+typedef VoidSpiEventListenerCB AccessibleEventListenerCB;
+typedef BooleanKeystrokeListenerCB    AccessibleKeystrokeListenerCB;
 
 #ifdef __cplusplus
 }