mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
input: add qemu_input_handler_deactivate
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
02aa76c2ba
commit
528728fd93
2 changed files with 8 additions and 0 deletions
|
@ -39,6 +39,13 @@ void qemu_input_handler_activate(QemuInputHandlerState *s)
|
|||
qemu_input_check_mode_change();
|
||||
}
|
||||
|
||||
void qemu_input_handler_deactivate(QemuInputHandlerState *s)
|
||||
{
|
||||
QTAILQ_REMOVE(&handlers, s, node);
|
||||
QTAILQ_INSERT_TAIL(&handlers, s, node);
|
||||
qemu_input_check_mode_change();
|
||||
}
|
||||
|
||||
void qemu_input_handler_unregister(QemuInputHandlerState *s)
|
||||
{
|
||||
QTAILQ_REMOVE(&handlers, s, node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue