summaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-03-29 23:23:14 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-05-03 10:45:04 +0200
commit4efee029cbd5dc3aaa422edc10447f3659df7754 (patch)
tree095e805e85a811d90038a3e0629d332dfe4ce68e /hmp.c
parent7e3efdac75caca0b283f8e76ad24c924b4718e7b (diff)
downloadqemu-4efee029cbd5dc3aaa422edc10447f3659df7754.tar.gz
spice_info: add mouse_mode
Add mouse_mode, either server or mouse, to qmp and hmp commands, based on spice_server_is_server_mouse added in spice-server 0.10.3. Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index eb96618e1e..1f9fe0e995 100644
--- a/hmp.c
+++ b/hmp.c
@@ -350,6 +350,8 @@ void hmp_info_spice(Monitor *mon)
}
monitor_printf(mon, " auth: %s\n", info->auth);
monitor_printf(mon, " compiled: %s\n", info->compiled_version);
+ monitor_printf(mon, " mouse-mode: %s\n",
+ SpiceQueryMouseMode_lookup[info->mouse_mode]);
if (!info->has_channels || info->channels == NULL) {
monitor_printf(mon, "Channels: none\n");