Un-constify evemu_create()'s evemu_device struct argument

Having the 'create' API take a const argument is a really bad idea, it makes
it impossible to store any data inside the struct that would be useful on
creation. This includes automatically setting the node name on creation, or,
more importantly here, enabling a new libevdev backend.

Since this is an ABI break, bump the libtool version.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Change evemu_destroy to take a struct evemu_device

We need the struct around for future operations on it, e.g. freeing memory
associated with the uinput device.

This is an API and ABI break, already covered by the soname bump from the
previous commit.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Switch to using a libevdev backend

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Drop generation of event_names.h

event names are now handled by libevdev, we don't need this anymore.
Leave the python script in place for the conversion script.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
test: only test for event code if we have the type

Fixed versions of libevdev won't enable event types that don't exist,
so we can't expect them to be enabled.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
data: add EV_REP range to ntrig recording

This is just to make the tests work again. New evemu writes out all valid
event types, even when it's just zeros. The EV_REP range was missing from this
recording, causing the test to fail.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
tools: allow symbolic names for evemu-event

evemu-event --type EV_KEY --code KEY_A --value 1 /dev/input/event0

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>