mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-10 03:20:15 +01:00
test: add litest_add_device()
For adding a litest device to an existing context. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
647b2ba18d
commit
dc3ad5315f
2 changed files with 14 additions and 0 deletions
|
|
@ -563,6 +563,18 @@ litest_add_device_with_overrides(struct libinput *libinput,
|
|||
return d;
|
||||
}
|
||||
|
||||
struct litest_device *
|
||||
litest_add_device(struct libinput *libinput,
|
||||
enum litest_device_type which)
|
||||
{
|
||||
return litest_add_device_with_overrides(libinput,
|
||||
which,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
}
|
||||
|
||||
struct litest_device *
|
||||
litest_create_device_with_overrides(enum litest_device_type which,
|
||||
const char *name_override,
|
||||
|
|
|
|||
|
|
@ -88,6 +88,8 @@ void litest_add_no_device(const char *name, void *func);
|
|||
|
||||
int litest_run(int argc, char **argv);
|
||||
struct litest_device * litest_create_device(enum litest_device_type which);
|
||||
struct litest_device * litest_add_device(struct libinput *libinput,
|
||||
enum litest_device_type which);
|
||||
struct libevdev_uinput *
|
||||
litest_create_uinput_device_from_description(const char *name,
|
||||
const struct input_id *id,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue