From 9c9524d9e8086336e068161fc5ae803ba7b81dfa Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 8 Dec 2014 13:43:33 +1000 Subject: [PATCH] Drop LIBINPUT_TABLET_AXIS_CNT from the public API 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 Reviewed-by: Hans de Goede --- 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 85267761..49232f9e 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 78bb9eff..d59435da 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 }; /**