diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-17 15:05:00 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-19 23:13:28 +0200 |
commit | b1be65f6436f53618408d9c6fc6959054f5afed6 (patch) | |
tree | 664d1a3f87e6d78c5476e06d199ac79c34397942 /include | |
parent | 08d45942972ada0e4d051799fb8ba1b47225a6b3 (diff) | |
download | qemu-b1be65f6436f53618408d9c6fc6959054f5afed6.zip qemu-b1be65f6436f53618408d9c6fc6959054f5afed6.tar.gz qemu-b1be65f6436f53618408d9c6fc6959054f5afed6.tar.bz2 |
ui/input: Constify QemuInputHandler structure
Access to QemuInputHandlerState::handler are read-only.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20231017131251.43708-1-philmd@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/virtio/virtio-input.h | 2 | ||||
-rw-r--r-- | include/ui/input.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/virtio/virtio-input.h b/include/hw/virtio/virtio-input.h index 08f1591..a6c9703 100644 --- a/include/hw/virtio/virtio-input.h +++ b/include/hw/virtio/virtio-input.h @@ -84,7 +84,7 @@ struct VirtIOInputHID { VirtIOInput parent_obj; char *display; uint32_t head; - QemuInputHandler *handler; + const QemuInputHandler *handler; QemuInputHandlerState *hs; int ledstate; bool wheel_axis; diff --git a/include/ui/input.h b/include/ui/input.h index 24d8e45..8f9aac5 100644 --- a/include/ui/input.h +++ b/include/ui/input.h @@ -30,7 +30,7 @@ struct QemuInputHandler { }; QemuInputHandlerState *qemu_input_handler_register(DeviceState *dev, - QemuInputHandler *handler); + const QemuInputHandler *handler); void qemu_input_handler_activate(QemuInputHandlerState *s); void qemu_input_handler_deactivate(QemuInputHandlerState *s); void qemu_input_handler_unregister(QemuInputHandlerState *s); |