From: Peter Hutterer Date: Fri, 23 Aug 2013 00:26:36 +0000 (+1000) Subject: Add a note that libevdev_is_event_type/code have compile-time ranges X-Git-Tag: libevdev-0.4~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40fda4b2d478d8f6fe68331a771b59f66a6a22ac;p=platform%2Fupstream%2Flibevdev.git Add a note that libevdev_is_event_type/code have compile-time ranges Signed-off-by: Peter Hutterer Acked-by: Benjamin Tissoires --- diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h index 6113f41..24fa9eb 100644 --- a/libevdev/libevdev.h +++ b/libevdev/libevdev.h @@ -1211,6 +1211,9 @@ int libevdev_kernel_set_led_values(struct libevdev *dev, ...); * 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.) @@ -1231,6 +1234,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.)