hmp: info spice: take out webdav
PATCH 1/1 hmp: info spice: take out webdav
Obvious suggestion for the next spice-protocol
release: Add some way to #ifdef new stuff.
Signed-off-by Gerd Hoffmann <[email protected]>
--- hmp.c | 5 +++++ 1 file changed, 5 insertions(+)
hmp.c +5 -0
@@ -561,7 +561,12 @@ void hmp_info_spice(Monitor *mon, const QDict *qdict) [SPICE_CHANNEL_SMARTCARD] = "smartcard", [SPICE_CHANNEL_USBREDIR] = "usbredir", [SPICE_CHANNEL_PORT ] ="port" , +#if 0 +/* minimum spice-protocol is 0.12.3, webdav was added in 0.12.7, +* no easy way to #ifdef (SPICE_CHANNEL_* is a enum). Disable +* as quick fix for build failures with older versions. */ [SPICE_CHANNEL_WEBDAV ] ="webdav" , +#endif }; info =qmp_query_spice (NULL );
Signature · 1 line
1.8.3.1
Quoted 16 lines · Gerd Hoffmann
Obvious suggestion for the next spice-protocol
release: Add some way to #ifdef new stuff.Signed-off-by Gerd Hoffmann <[email protected]>--- hmp.c | 5 +++++ 1 file changed, 5 insertions(+)hmp.c +0
-0@@ -561,7 +561,12 @@ void hmp_info_spice(Monitor *mon, const QDict *qdict) [SPICE_CHANNEL_SMARTCARD] = "smartcard", [SPICE_CHANNEL_USBREDIR] = "usbredir",
hmp.c void hmp_info_spice(Monitor *mon, const QDict *qdict) · line 572
Quoted 10 lines
hmp.c +5
-0[SPICE_CHANNEL_PORT ] ="port" , +#if 0 +/* minimum spice-protocol is 0.12.3, webdav was added in 0.12.7, +* no easy way to #ifdef (SPICE_CHANNEL_* is a enum). Disable +* as quick fix for build failures with older versions. */ [SPICE_CHANNEL_WEBDAV ] ="webdav" , +#endif }; info =qmp_query_spice (NULL );
Hmm sorry about that.
Reviewed-by Cole Robinson <[email protected]>
- Cole