Add a test for event the various libevdev_has_event * functions

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

This avoids messing around with libtool for debugging. I may revert this
once the library is actually slightly stable, but for now this makes things
easier.

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

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Use a size_t, not an int, where appropriate

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Don't allow a queue size of 0.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Don't return the next element if the queue is full

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

Return 0 for an unallocated queue, and return the actual number of events (rather than one too
little).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test: add test for internal event queue

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Fix stray code tag in html

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Use doxygen instead of man pages

Doxygen is bad for man pages, but having an online API documentation
is better and easier to maintain.

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

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Slots are now definitely zero-indexed, see recent kernel patch

	doc: specify that ABS_MT_SLOT must have a minimum of 0

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test: fix includes for distcheck

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

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Don't crash peeking at a zero-sized queue

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test: add more event queue tests

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

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Don't return a NULL name, ever.

Even if the device is not yet initialized (which would be a caller bug, but still)

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