Drop the callback interface, replace with libevdev_next_event
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 30 May 2013 00:42:24 +0000 (10:42 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 30 May 2013 03:37:25 +0000 (13:37 +1000)
commitf3d94ecfd725f462eb1c3a9ac16c4dae5c8872b1
tree94273b1a6e8850d6d66c0abf9cc2c487033f65d4
parente19994c34c4225185860cd9f2d2aab46a04347e6
Drop the callback interface, replace with libevdev_next_event

Callbacks looked good on paper, but synaptics ran into an issue already that
it just couldn't easily pass around the state needed in the actual event
processing function.

Replace with a new interface that only returns the next event (still reading
more off the fd while doing so).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/libevdev-int.h
libevdev/libevdev.c
libevdev/libevdev.h
test/libevdev-events.c