diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-03-28 12:13:57 +1000 |
---|---|---|
committer | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2013-03-28 11:29:17 +0100 |
commit | 63985d71559117e9dee8880866f4c2bef20975a7 (patch) | |
tree | 68df0eabf85cba68e72c4f9ee18021504c7a991a /include | |
parent | bf90bf72fda6607c27cd7e86d1097e4a3f9b260f (diff) |
Add evemu_has_bit() to check a device for a EV_* bit
BZ #62842
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/evemu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/evemu.h b/include/evemu.h index 4f4db55..790b14a 100644 --- a/include/evemu.h +++ b/include/evemu.h @@ -288,6 +288,15 @@ int evemu_has_prop(const struct evemu_device *dev, int code); int evemu_has_event(const struct evemu_device *dev, int type, int code); /** + * evemu_has_bit() - check if a device has a certain EV_* bit set + * @dev: the device in use + * @type: the EV_* bit to query + * + * Returns true if the event bit is supported by the device. + */ +int evemu_has_bit(const struct evemu_device *dev, int type); + +/** * evemu_extract() - configure evemu instance directly from the kernel device * @dev: the device in use * @fd: file descriptor of the kernel device to query |