Switch to a state machine to handle incomplete syncs
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 2 Jul 2013 00:50:37 +0000 (10:50 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 2 Jul 2013 04:02:55 +0000 (14:02 +1000)
commitc661e80ba0f20ea8b71fcc0aa02840c52314710a
tree9a90416818ec37d21fcc44c505b105c5c1fc5a48
parentf3a6b0c6854a59f4433217f279f76383687d0c3b
Switch to a state machine to handle incomplete syncs

A caller may start syncing but switch back to normal half-way through the
sync. In that case, we need to drop all sync events and continue with
regular events only.

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