[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 03/37] ui/vdagent: replace #if 0 with protocol version check
From: |
marcandre . lureau |
Subject: |
[PATCH v2 03/37] ui/vdagent: replace #if 0 with protocol version check |
Date: |
Sun, 10 Oct 2021 01:08:04 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
ui/vdagent.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/ui/vdagent.c b/ui/vdagent.c
index 1f8fc77ee8..64e0017001 100644
--- a/ui/vdagent.c
+++ b/ui/vdagent.c
@@ -87,8 +87,10 @@ static const char *cap_name[] = {
[VD_AGENT_CAP_MONITORS_CONFIG_POSITION] = "monitors-config-position",
[VD_AGENT_CAP_FILE_XFER_DISABLED] = "file-xfer-disabled",
[VD_AGENT_CAP_FILE_XFER_DETAILED_ERRORS] =
"file-xfer-detailed-errors",
-#if 0
+#if CHECK_SPICE_PROTOCOL_VERSION(0, 14, 0)
[VD_AGENT_CAP_GRAPHICS_DEVICE_INFO] = "graphics-device-info",
+#endif
+#if CHECK_SPICE_PROTOCOL_VERSION(0, 14, 1)
[VD_AGENT_CAP_CLIPBOARD_NO_RELEASE_ON_REGRAB] =
"clipboard-no-release-on-regrab",
[VD_AGENT_CAP_CLIPBOARD_GRAB_SERIAL] = "clipboard-grab-serial",
#endif
@@ -110,7 +112,7 @@ static const char *msg_name[] = {
[VD_AGENT_CLIENT_DISCONNECTED] = "client-disconnected",
[VD_AGENT_MAX_CLIPBOARD] = "max-clipboard",
[VD_AGENT_AUDIO_VOLUME_SYNC] = "audio-volume-sync",
-#if 0
+#if CHECK_SPICE_PROTOCOL_VERSION(0, 14, 0)
[VD_AGENT_GRAPHICS_DEVICE_INFO] = "graphics-device-info",
#endif
};
@@ -128,7 +130,7 @@ static const char *type_name[] = {
[VD_AGENT_CLIPBOARD_IMAGE_BMP] = "bmp",
[VD_AGENT_CLIPBOARD_IMAGE_TIFF] = "tiff",
[VD_AGENT_CLIPBOARD_IMAGE_JPG] = "jpg",
-#if 0
+#if CHECK_SPICE_PROTOCOL_VERSION(0, 14, 3)
[VD_AGENT_CLIPBOARD_FILE_LIST] = "files",
#endif
};
--
2.33.0.721.g106298f7f9
- [PATCH v2 00/37] Add D-Bus display backend, marcandre . lureau, 2021/10/09
- [PATCH v2 01/37] build-sys: move Spice configure handling to meson, marcandre . lureau, 2021/10/09
- [PATCH v2 02/37] ui/vdagent: add CHECK_SPICE_PROTOCOL_VERSION, marcandre . lureau, 2021/10/09
- [PATCH v2 03/37] ui/vdagent: replace #if 0 with protocol version check,
marcandre . lureau <=
- [PATCH v2 04/37] ui: generalize clipboard notifier, marcandre . lureau, 2021/10/09
- [PATCH v2 05/37] ui/vdagent: add serial capability support, marcandre . lureau, 2021/10/09
- [PATCH v2 06/37] ui/clipboard: add qemu_clipboard_check_serial(), marcandre . lureau, 2021/10/09
- [PATCH v2 07/37] ui/clipboard: add a clipboard reset serial event, marcandre . lureau, 2021/10/09
- [PATCH v2 08/37] hw/display: report an error if virgl initialization failed, marcandre . lureau, 2021/10/09
- [PATCH v2 09/37] virtio-gpu: use VIRTIO_GPU_RESOURCE_FLAG_Y_0_TOP, marcandre . lureau, 2021/10/09
- [PATCH v2 10/37] ui: do not delay further remote resize, marcandre . lureau, 2021/10/09
- [PATCH v2 11/37] ui: factor out qemu_console_set_display_gl_ctx(), marcandre . lureau, 2021/10/09
- [PATCH v2 12/37] ui: associate GL context outside of display listener registration, marcandre . lureau, 2021/10/09
- [PATCH v2 13/37] ui: make gl_block use a counter, marcandre . lureau, 2021/10/09