From cb42a870c3f5b38911b1428cb785dd702bc47d0f Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 30 Nov 2010 11:02:51 +0100 Subject: spice: add qmp 'query-spice' and hmp 'info spice' commands. The patch adds a 'query-spice' monitor command which returns informations about the spice server configuration and also a list of channel connections. Signed-off-by: Gerd Hoffmann --- monitor.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index f04dda527a..1047ceea97 100644 --- a/monitor.c +++ b/monitor.c @@ -2581,6 +2581,16 @@ static const mon_cmd_t info_cmds[] = { .user_print = do_info_vnc_print, .mhandler.info_new = do_info_vnc, }, +#if defined(CONFIG_SPICE) + { + .name = "spice", + .args_type = "", + .params = "", + .help = "show the spice server status", + .user_print = do_info_spice_print, + .mhandler.info_new = do_info_spice, + }, +#endif { .name = "name", .args_type = "", @@ -2768,6 +2778,16 @@ static const mon_cmd_t qmp_query_cmds[] = { .user_print = do_info_vnc_print, .mhandler.info_new = do_info_vnc, }, +#if defined(CONFIG_SPICE) + { + .name = "spice", + .args_type = "", + .params = "", + .help = "show the spice server status", + .user_print = do_info_spice_print, + .mhandler.info_new = do_info_spice, + }, +#endif { .name = "name", .args_type = "", -- cgit v1.2.3