[PATCH libevdev 04/13] Add a note that libevdev_is_event_type/code have compile-time ranges

Peter Hutterer peter.hutterer at who-t.net
Sun Aug 25 16:27:24 PDT 2013


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 libevdev/libevdev.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h
index bd65175..635c58a 100644
--- a/libevdev/libevdev.h
+++ b/libevdev/libevdev.h
@@ -1105,6 +1105,9 @@ int libevdev_kernel_set_abs_value(struct libevdev *dev, unsigned int code, const
  * with the exception that some sanity checks are performed to ensure type
  * is valid.
  *
+ * @note The ranges for types are compiled into libevdev. If the kernel
+ * changes the max value, libevdev will not automatically pick these up.
+ *
  * @param ev The input event to check
  * @param type Input event type to compare the event against (EV_REL, EV_ABS,
  * etc.)
@@ -1125,6 +1128,9 @@ int libevdev_is_event_type(const struct input_event *ev, unsigned int type);
  * with the exception that some sanity checks are performed to ensure type and
  * code are valid.
  *
+ * @note The ranges for types and codes are compiled into libevdev. If the kernel
+ * changes the max value, libevdev will not automatically pick these up.
+ *
  * @param ev The input event to check
  * @param type Input event type to compare the event against (EV_REL, EV_ABS,
  * etc.)
-- 
1.8.2.1



More information about the Input-tools mailing list