diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-11-06 14:30:21 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-11-06 15:08:28 +1000 |
commit | ba30abff77c6f7ac12df1b2f9ad913ae8460c3c9 (patch) | |
tree | 443a3b263b1d44010006b3b1b312b035a1200dfe /test | |
parent | 15527c73bd6f08e517a7b5af487c5b9525f97e22 (diff) | |
download | libinput-ba30abff77c6f7ac12df1b2f9ad913ae8460c3c9.tar.gz |
test: pass an enum for the axis instead of uint
Let's pretend that makes it type-safe.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r-- | test/litest.c | 4 | ||||
-rw-r--r-- | test/litest.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/test/litest.c b/test/litest.c index e028176d..b7866714 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 26b30407..85755567 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, |