summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-09-07 15:21:31 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-08-02 10:05:55 +1000
commite8531dd6a981c6cf19a1d256c29e886e34e8f51a (patch)
tree6fcbf70bf904389984e1cc9865993d8d5dea68a7 /src
parent653b45b7cc275a560c1ea213216a908c125e443d (diff)
Add XI2 library-internal array offsets to XIint.h
These defines are currently defined in XI.h and XI2.h. Their only use is as offset into a library-internal array. Add them to XIint.h to have them where they belong. These defines do not have any effect on the protocol. They are simply offsets into an array for libXi-specific version checking. The defines are added to this header for readability, given that we cannot remove them from the protocol without potentially breaking clients (who should never use these anyway, but...) means they will never get hit. Future defines for these offsets will only be added to libXi, not the protocol. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/XIint.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/XIint.h b/src/XIint.h
index b27f04a..8e9cf72 100644
--- a/src/XIint.h
+++ b/src/XIint.h
@@ -7,6 +7,21 @@
#define _XIINT_H_
#include <X11/extensions/XI.h>
+/* inputproto 2.0 still shipped with these defined in the proto headers */
+#ifndef XInput_Initial_Release
+/* Indices into the versions[] array (XExtInt.c). Used as a index to
+ * retrieve the minimum version of XI from _XiCheckExtInit */
+#define Dont_Check 0
+#define XInput_Initial_Release 1
+#define XInput_Add_XDeviceBell 2
+#define XInput_Add_XSetDeviceValuators 3
+#define XInput_Add_XChangeDeviceControl 4
+#define XInput_Add_DevicePresenceNotify 5
+#define XInput_Add_DeviceProperties 6
+#define XInput_2_0 7
+#endif
+
+
extern XExtDisplayInfo *XInput_find_display(Display *);
extern int _XiCheckExtInit(Display *, int, XExtDisplayInfo *);