diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-10-20 17:01:33 -0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2011-10-27 11:48:47 -0200 |
commit | d1f29646f21321e60d1be4e72ac3b6caaa0239cc (patch) | |
tree | 0c179c16292aa81c527b13db4092ee78e5e77dde /qmp.c | |
parent | 2b54aa879ea8490e25107dfc51a6ee268c84c273 (diff) | |
download | qemu-d1f29646f21321e60d1be4e72ac3b6caaa0239cc.zip qemu-d1f29646f21321e60d1be4e72ac3b6caaa0239cc.tar.gz qemu-d1f29646f21321e60d1be4e72ac3b6caaa0239cc.tar.bz2 |
qapi: Convert query-spice
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qmp.c')
-rw-r--r-- | qmp.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |