Include stdarg for va_list.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Allow libevdev_free on a NULL pointer.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Drop requirement on ffi - copy/paste leftover

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test: drop unused function print_code_bits

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Merge libevdev-print and libevdev-events into one binary

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Move libevdev-events over to a tools directory

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Add man page for libevdev_get_event_value and friends

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Expose API for retrieving event names

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Switch tools to use libevdev_get_event_*_name interface

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Blacklist some key names that resolve to other names

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Set up a test harness

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Protect against NULL device on log handler

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Add a few includes the libevdev-int.h needs

These were hidden due to the include order from the .c files, but really,
libevdev-int should include them.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Move utility functions to a separate header

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Inline the type-to-mask helpers

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Add functions to enable axis on the device in the kernel

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test: add infrastructure for uinput device tests

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Fix type_to_mask to return -1

EV_SYN doesn't have a max, so 0 is not enough.

returning 0 on failure is a bad idea, as mask is unset.
Default to a max of -1 for undefined EV_foo bits

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Add function to get max value for a given ev type

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>