mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-24 20:30:06 +01:00
test: provide wrapper for fetching the devnode from a uinput test device
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
parent
b539cfd808
commit
c299ab3c5e
2 changed files with 7 additions and 0 deletions
|
|
@ -128,6 +128,12 @@ uinput_device_get_fd(const struct uinput_device *dev)
|
|||
return dev->dev_fd;
|
||||
}
|
||||
|
||||
const char*
|
||||
uinput_device_get_devnode(const struct uinput_device *dev)
|
||||
{
|
||||
return libevdev_uinput_get_devnode(dev->uidev);
|
||||
}
|
||||
|
||||
int
|
||||
uinput_device_create(struct uinput_device* d)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -44,5 +44,6 @@ int uinput_device_event(const struct uinput_device* dev, unsigned int type, unsi
|
|||
int uinput_device_event_multiple(const struct uinput_device* dev, ...);
|
||||
int uinput_device_event_multiple_v(const struct uinput_device* dev, va_list args);
|
||||
int uinput_device_get_fd(const struct uinput_device *dev);
|
||||
const char* uinput_device_get_devnode(const struct uinput_device *dev);
|
||||
|
||||
char *uinput_devnode_from_syspath(const char *syspath);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue