mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-04-17 13:50:47 +02:00
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>
This commit is contained in:
parent
15527c73bd
commit
ba30abff77
2 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue