[RFC PATCH inputproto 3/3] Put a #warning and #error in to avoid unsuspecting XI 2.1 users.
Peter Hutterer
peter.hutterer at who-t.net
Thu Apr 7 21:28:13 PDT 2011
The #warning directive is intentionally outside the define to disable the
error. Early adopters of the protocol can't see this warning often enough.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
XI2.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/XI2.h b/XI2.h
index 4c7feb6..8a83a63 100644
--- a/XI2.h
+++ b/XI2.h
@@ -25,6 +25,12 @@
#ifndef _XI2_H_
#define _XI2_H_
+#warning "XI 2.1 is not stable yet."
+#warning "Applications relying on the protocol will break as break as the protocol sees updates."
+#ifndef XINPUT2_1_USE_UNSTABLE_PROTOCOL
+#error "Define XINPUT2_1_USE_UNSTABLE_PROTOCOL to disable this error"
+#endif
+
/* Indices into the versions[] array (XExtInt.c). Used as a index to
* retrieve the minimum version of XI from _XiCheckExtInit.
* For indices 0 to 6 see XI.h */
--
1.7.4.2
More information about the xorg-devel
mailing list