[PATCH libinput] Drop LIBINPUT_TABLET_AXIS_CNT from the public API

Peter Hutterer peter.hutterer at who-t.net
Sun Dec 7 19:52:30 PST 2014


Avoid mismatches in what the caller expects vs what libinput actually
provides when building against newer/older versions of libinput.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
This patch applies to the tablet-support branch

 src/libinput-private.h | 2 ++
 src/libinput.h         | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libinput-private.h b/src/libinput-private.h
index 8526776..49232f9 100644
--- a/src/libinput-private.h
+++ b/src/libinput-private.h
@@ -30,6 +30,8 @@
 #include "libinput.h"
 #include "libinput-util.h"
 
+#define LIBINPUT_TABLET_AXIS_CNT LIBINPUT_TABLET_AXIS_TILT_Y + 1
+
 struct libinput_source;
 
 struct libinput_interface_backend {
diff --git a/src/libinput.h b/src/libinput.h
index 78bb9ef..d59435d 100644
--- a/src/libinput.h
+++ b/src/libinput.h
@@ -277,7 +277,6 @@ enum libinput_tablet_axis {
 	LIBINPUT_TABLET_AXIS_PRESSURE = 3,
 	LIBINPUT_TABLET_AXIS_TILT_X = 4,
 	LIBINPUT_TABLET_AXIS_TILT_Y = 5,
-	LIBINPUT_TABLET_AXIS_CNT = LIBINPUT_TABLET_AXIS_TILT_Y + 1
 };
 
 /**
-- 
2.1.0



More information about the wayland-devel mailing list