mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-05 22:17:40 -07:00
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>
This commit is contained in:
parent
08d4594297
commit
b1be65f643
13 changed files with 22 additions and 22 deletions
|
|
@ -265,7 +265,7 @@ static const TypeInfo virtio_input_hid_info = {
|
|||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
static QemuInputHandler virtio_keyboard_handler = {
|
||||
static const QemuInputHandler virtio_keyboard_handler = {
|
||||
.name = VIRTIO_ID_NAME_KEYBOARD,
|
||||
.mask = INPUT_EVENT_MASK_KEY,
|
||||
.event = virtio_input_handle_event,
|
||||
|
|
@ -322,7 +322,7 @@ static const TypeInfo virtio_keyboard_info = {
|
|||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
static QemuInputHandler virtio_mouse_handler = {
|
||||
static const QemuInputHandler virtio_mouse_handler = {
|
||||
.name = VIRTIO_ID_NAME_MOUSE,
|
||||
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL,
|
||||
.event = virtio_input_handle_event,
|
||||
|
|
@ -416,7 +416,7 @@ static const TypeInfo virtio_mouse_info = {
|
|||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
static QemuInputHandler virtio_tablet_handler = {
|
||||
static const QemuInputHandler virtio_tablet_handler = {
|
||||
.name = VIRTIO_ID_NAME_TABLET,
|
||||
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_ABS,
|
||||
.event = virtio_input_handle_event,
|
||||
|
|
@ -541,7 +541,7 @@ static const TypeInfo virtio_tablet_info = {
|
|||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
static QemuInputHandler virtio_multitouch_handler = {
|
||||
static const QemuInputHandler virtio_multitouch_handler = {
|
||||
.name = VIRTIO_ID_NAME_MULTITOUCH,
|
||||
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_MTT,
|
||||
.event = virtio_input_handle_event,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue