mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06: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
|
@ -10,7 +10,7 @@
|
|||
|
||||
struct QemuInputHandlerState {
|
||||
DeviceState *dev;
|
||||
QemuInputHandler *handler;
|
||||
const QemuInputHandler *handler;
|
||||
int id;
|
||||
int events;
|
||||
QemuConsole *con;
|
||||
|
@ -46,7 +46,7 @@ static uint32_t queue_count;
|
|||
static uint32_t queue_limit = 1024;
|
||||
|
||||
QemuInputHandlerState *qemu_input_handler_register(DeviceState *dev,
|
||||
QemuInputHandler *handler)
|
||||
const QemuInputHandler *handler)
|
||||
{
|
||||
QemuInputHandlerState *s = g_new0(QemuInputHandlerState, 1);
|
||||
static int id = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue