File Add-content-from-more-recent-spice-protocol-devel.patch of Package spice-vdagent.17026
From d83dfd434cd16baa401a9d554b977a85eef5185a Mon Sep 17 00:00:00 2001
From: Bruce Rogers <brogers@suse.com>
Date: Sat, 31 Oct 2020 14:01:53 -0600
Subject: [PATCH] Add content from more recent spice-protocol-devel
References: bsc#1173749
Signed-off-by: Bruce Rogers <brogers@suse.com>
---
src/vdagentd/vdagentd.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/vdagentd/vdagentd.c b/src/vdagentd/vdagentd.c
index 5d1a386..e1788f2 100644
--- a/src/vdagentd/vdagentd.c
+++ b/src/vdagentd/vdagentd.c
@@ -31,6 +31,30 @@
#include <syslog.h>
#include <sys/stat.h>
#include <spice/vd_agent.h>
+// This comes from more recent versions of the above file:
+enum {
+ /* Error number is a G_IO_ERROR_xxx defined in
+ * https://developer.gnome.org/gio/stable/gio-GIOError.html
+ */
+ VD_AGENT_FILE_XFER_STATUS_ERROR_GLIB_IO,
+};
+
+/* Detailed error for VD_AGENT_FILE_XFER_STATUS_ERROR.
+ * Only present if VD_AGENT_CAP_FILE_XFER_DETAILED_ERRORS is
+ * negotiated and the size of the message can contain it.
+ * Otherwise a generic error should be assumed and reported.
+ */
+#include <spice/start-packed.h>
+typedef struct SPICE_ATTR_PACKED VDAgentFileXferStatusError {
+ /* One of VD_AGENT_FILE_XFER_STATUS_ERROR_xxx enumeration
+ */
+ uint8_t error_type;
+ /* An error code which enumeration depends on error_type
+ */
+ uint32_t error_code;
+} VDAgentFileXferStatusError;
+#include <spice/end-packed.h>
+
#include <glib-unix.h>
#include <stdbool.h>
#include <gio/gio.h>
--
2.29.0