On Tue, 2017-06-06 at 23:21 +0200, Jakub Janků wrote: > Introduce new error statuses to report more info to clients: > VD_AGENT_FILE_XFER_STATUS_SESSION_LOCKED, > VD_AGENT_FILE_XFER_STATUS_VDAGENT_NOT_CONNECTED, > VD_AGENT_FILE_XFER_STATUS_DISABLED > > These are only sent to clients that feature > VD_AGENT_CAP_FILE_XFER_DETAILED_ERRORS capability. Acked-by: Pavel Grunt <pgrunt@xxxxxxxxxx> Thanks! Pavel > --- > spice/vd_agent.h | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/spice/vd_agent.h b/spice/vd_agent.h > index 2a168d0..7109ede 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_VDAGENT_NOT_CONNECTED, > + VD_AGENT_FILE_XFER_STATUS_DISABLED, > }; > > typedef struct SPICE_ATTR_PACKED VDAgentFileXferStatusMessage { > @@ -108,8 +111,11 @@ typedef struct SPICE_ATTR_PACKED > VDAgentFileXferStatusMessage { > /* Used to send additional data for detailed error messages > * to clients with VD_AGENT_CAP_FILE_XFER_DETAILED_ERRORS > capability. > * Type of data varies with the result: > - * result : data type > + * result : data type (NULL if no data) > * VD_AGENT_FILE_XFER_STATUS_NOT_ENOUGH_SPACE : uint64_t > + * VD_AGENT_FILE_XFER_STATUS_SESSION_LOCKED : NULL > + * VD_AGENT_FILE_XFER_STATUS_VDAGENT_NOT_CONNECTED : NULL > + * VD_AGENT_FILE_XFER_STATUS_DISABLED : NULL > */ > uint8_t data[0]; > } VDAgentFileXferStatusMessage; _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel