From d1f29646f21321e60d1be4e72ac3b6caaa0239cc Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Thu, 20 Oct 2011 17:01:33 -0200 Subject: qapi: Convert query-spice Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- qmp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'qmp.c') diff --git a/qmp.c b/qmp.c index 3a58cfe35f..511dd624b5 100644 --- a/qmp.c +++ b/qmp.c @@ -105,3 +105,15 @@ VncInfo *qmp_query_vnc(Error **errp) return NULL; }; #endif + +#ifndef CONFIG_SPICE +/* If SPICE support is enabled, the "true" query-spice command is + defined in the SPICE subsystem. Also note that we use a small + trick to maintain query-spice's original behavior, which is not + to be available in the namespace if SPICE is not compiled in */ +SpiceInfo *qmp_query_spice(Error **errp) +{ + error_set(errp, QERR_COMMAND_NOT_FOUND, "query-spice"); + return NULL; +}; +#endif -- cgit v1.2.1