Skip to contentSkip to conversation

hmp: info spice: take out webdav

PATCH In review Gerd Hoffmann 2 participants 2 messages Mar 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hmp: info spice: take out webdav

Obvious suggestion for the next spice-protocol
release: Add some way to #ifdef new stuff.

---
 hmp.c | 5 +++++
 1 file changed, 5 insertions(+)
hmp.c +5 -0
index eacfb1b..71c28bc 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Gerd Hoffmann

Obvious suggestion for the next spice-protocol
release: Add some way to #ifdef new stuff.

---
 hmp.c | 5 +++++
 1 file changed, 5 insertions(+)
hmp.c +0 -0
index eacfb1b..71c28bc 100644
@@ -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.

- Cole