libevdev/test
Peter Hutterer 5d2fc78138 Enumerate libevdev_next_event() return codes
Improved readability in callers, changing magic numbers 0 and 1 to

rc = libevdev_next_event();
if (rc == LIBEVDEV_READ_STATUS_SUCCESS)
    do_something();
else if (rc == LIBEVDEV_READ_STATUS_SYNC)
    do_something_else()

No ABI changes, the enum values are the previously documented values,
this is just a readability improvement.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
2013-09-11 12:10:12 +10:00
..
.gitignore Set up a test harness 2013-06-04 11:39:33 +10:00
Makefile.am test: add uinput creation tests 2013-08-29 13:54:49 +10:00
test-common-uinput.c Use ENOMEM instead of ENOSPC 2013-08-31 12:27:23 +10:00
test-common-uinput.h test: switch udev backend over to new libevdev-uinput bits 2013-08-29 13:54:49 +10:00
test-common.c test: define a common device name 2013-07-05 09:11:34 +10:00
test-common.h test: define a common device name 2013-07-05 09:11:34 +10:00
test-event-names.c Revamp the API once again 2013-09-10 11:25:09 +10:00
test-int-queue.c Use ENOMEM instead of ENOSPC 2013-08-31 12:27:23 +10:00
test-libevdev-events.c Enumerate libevdev_next_event() return codes 2013-09-11 12:10:12 +10:00
test-libevdev-has-event.c Revamp the API once again 2013-09-10 11:25:09 +10:00
test-libevdev-init.c test: test for logging function 2013-09-10 09:54:29 +10:00
test-main.c test: add uinput creation tests 2013-08-29 13:54:49 +10:00
test-uinput.c Revamp the API once again 2013-09-10 11:25:09 +10:00