mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 04:40:25 +01:00
test: store the device type in the test device struct
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d4e6a6aadc
commit
8987773440
2 changed files with 2 additions and 0 deletions
|
|
@ -1346,6 +1346,7 @@ litest_create(enum litest_device_type which,
|
|||
ck_abort_msg("Invalid device type %d\n", which);
|
||||
|
||||
d = zalloc(sizeof(*d));
|
||||
d->which = which;
|
||||
|
||||
/* device has custom create method */
|
||||
if (dev->create) {
|
||||
|
|
|
|||
|
|
@ -348,6 +348,7 @@ struct litest_semi_mt {
|
|||
};
|
||||
|
||||
struct litest_device {
|
||||
enum litest_device_type which;
|
||||
struct libevdev *evdev;
|
||||
struct libevdev_uinput *uinput;
|
||||
struct libinput *libinput;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue