[Spice-devel] [PATCH spice-protocol v2] agent: Add new file-xfer statuses

Jakub Janků janku.jakub.jj at gmail.com
Mon May 29 14:24:34 UTC 2017


Introduce new error statuses to report more info to clients:
VD_AGENT_FILE_XFER_STATUS_SESSION_LOCKED,
VD_AGENT_FILE_XFER_STATUS_AGENT_NOT_CONNECTED,
VD_AGENT_FILE_XFER_STATUS_DISABLED

These are only sent to clients that feature
VD_AGENT_CAP_FILE_XFER_DETAILED_ERRORS capability.
---
 spice/vd_agent.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/spice/vd_agent.h b/spice/vd_agent.h
index 2a168d0..d5be6f7 100644
--- a/spice/vd_agent.h
+++ b/spice/vd_agent.h
@@ -100,6 +100,9 @@ enum {
     VD_AGENT_FILE_XFER_STATUS_ERROR,
     VD_AGENT_FILE_XFER_STATUS_SUCCESS,
     VD_AGENT_FILE_XFER_STATUS_NOT_ENOUGH_SPACE,
+    VD_AGENT_FILE_XFER_STATUS_SESSION_LOCKED,
+    VD_AGENT_FILE_XFER_STATUS_AGENT_NOT_CONNECTED,
+    VD_AGENT_FILE_XFER_STATUS_DISABLED,
 };
 
 typedef struct SPICE_ATTR_PACKED VDAgentFileXferStatusMessage {
-- 
2.13.0



More information about the Spice-devel mailing list