mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 09:55:55 +00:00
input: add qemu_input_handler_deactivate
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
02aa76c2ba
commit
528728fd93
|
@ -27,6 +27,7 @@ struct QemuInputHandler {
|
|||
QemuInputHandlerState *qemu_input_handler_register(DeviceState *dev,
|
||||
QemuInputHandler *handler);
|
||||
void qemu_input_handler_activate(QemuInputHandlerState *s);
|
||||
void qemu_input_handler_deactivate(QemuInputHandlerState *s);
|
||||
void qemu_input_handler_unregister(QemuInputHandlerState *s);
|
||||
void qemu_input_event_send(QemuConsole *src, InputEvent *evt);
|
||||
void qemu_input_event_sync(void);
|
||||
|
|
|
@ -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…
Reference in a new issue