[PATCH libinput] Drop LIBINPUT_TABLET_AXIS_CNT from the public API

Hans de Goede hdegoede at redhat.com
Mon Dec 8 00:26:04 PST 2014


Hi,

On 08-12-14 04:52, Peter Hutterer wrote:
> 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>

Looks good:

Reviewed-by: Hans de Goede <hdegoede at redhat.com>

Regards,

Hans

> ---
> 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
>   };
>
>   /**
>


More information about the wayland-devel mailing list