input: introduce keyboard handler list
commit5a37532d0897de488c35ab2db6d86647bd2a1b6f
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 24 Apr 2013 10:08:38 +0000 (24 12:08 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 24 Apr 2013 16:50:18 +0000 (24 11:50 -0500)
tree13c6185efc40487fef39999ba0055120ac739aac
parent72711efb58c13e28c89813490120b32947a2d719
input: introduce keyboard handler list

Add a linked list of keyboard handlers.  Added handlers will go
to the head of the list.  Removed handlers will be zapped from
the list.  The head of the list will be used for events.

This fixes the keyboard-dead-after-usb-kbd-unplug issue, key events
will be re-routed to the ps/2 kbd instead of being discarded.

[ v2: fix cut+paste bug found my Markus ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1366798118-3248-3-git-send-email-kraxel@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/input/hid.c
include/hw/input/hid.h
include/ui/console.h
ui/input.c