Return the length or a neg errno from libinput_device_get_keys()
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 13 Mar 2014 05:54:47 +0000 (15:54 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 23 Mar 2014 23:07:57 +0000 (09:07 +1000)
commit73ce45ad490bf80a60be10bdf1b3a633f71828d4
tree5a46bb3f66df787c25f3c2ba2c53736dcbd5d750
parente1d25a9539adbcd99bd503435c021e813dd43fbe
Return the length or a neg errno from libinput_device_get_keys()

Previous return value was the straight ioctl, we should try to avoid errno
mangling.

This changes the API, if not the ABI. Callers with code along the lines of
if (libinput_device_get_keys() == -1) will now break.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
src/evdev.c
src/libinput.h