From ba30abff77c6f7ac12df1b2f9ad913ae8460c3c9 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 6 Nov 2014 14:30:21 +1000 Subject: [PATCH] test: pass an enum for the axis instead of uint Let's pretend that makes it type-safe. Signed-off-by: Peter Hutterer --- test/litest.c | 4 +++- test/litest.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/litest.c b/test/litest.c index e028176..b786671 100644 --- a/test/litest.c +++ b/test/litest.c @@ -1090,7 +1090,9 @@ litest_assert_button_event(struct libinput *li, unsigned int button, libinput_event_destroy(event); } -void litest_assert_scroll(struct libinput *li, unsigned int axis, int dir) +void litest_assert_scroll(struct libinput *li, + enum libinput_pointer_axis axis, + int dir) { struct libinput_event *event, *next_event; struct libinput_event_pointer *ptrev; diff --git a/test/litest.h b/test/litest.h index 26b3040..8575556 100644 --- a/test/litest.h +++ b/test/litest.h @@ -150,7 +150,9 @@ void litest_assert_empty_queue(struct libinput *li); void litest_assert_button_event(struct libinput *li, unsigned int button, enum libinput_button_state state); -void litest_assert_scroll(struct libinput *li, unsigned int axis, int dir); +void litest_assert_scroll(struct libinput *li, + enum libinput_pointer_axis axis, + int dir); struct libevdev_uinput * litest_create_uinput_device(const char *name, struct input_id *id, -- 2.7.4