diff options
author | Markus Armbruster <armbru@redhat.com> | 2023-01-09 20:03:20 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-01-19 13:30:01 +0100 |
commit | ec843b97f2c02b85115c7c5c8799ea4d02ddfba7 (patch) | |
tree | 66ebfa1f30e15fa02deaefaefee66c54c27e9c29 /ui/ui-hmp-cmds.c | |
parent | 006e79cdf4273b52a854f36b119ebd2ea954ea92 (diff) |
ui: Split hmp_mouse_set() and move the HMP part to ui/
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230109190321.1056914-17-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'ui/ui-hmp-cmds.c')
-rw-r--r-- | ui/ui-hmp-cmds.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/ui-hmp-cmds.c b/ui/ui-hmp-cmds.c index 7ca80c8626..5c456ecc02 100644 --- a/ui/ui-hmp-cmds.c +++ b/ui/ui-hmp-cmds.c @@ -69,6 +69,14 @@ void hmp_mouse_button(Monitor *mon, const QDict *qdict) mouse_button_state = button_state; } +void hmp_mouse_set(Monitor *mon, const QDict *qdict) +{ + Error *err = NULL; + + qemu_mouse_set(qdict_get_int(qdict, "index"), &err); + hmp_handle_error(mon, err); +} + void hmp_info_mice(Monitor *mon, const QDict *qdict) { MouseInfoList *mice_list, *mouse; |