diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2020-03-18 10:08:04 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2020-03-19 14:36:05 +0000 |
commit | dfc27e60d7775f988d3f710263cbd6aa682b86fa (patch) | |
tree | 1875832c1798c3e5352b726df76bb68c65e871e8 | |
parent | f224422c0d0e18ef6b1c3c70f923b6fb81d0e7f3 (diff) |
vd_agent: Add structure for VD_AGENT_FILE_XFER_STATUS_NOT_ENOUGH_SPACE details
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
-rw-r--r-- | spice/vd_agent.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/spice/vd_agent.h b/spice/vd_agent.h index b0d6fde..5a2eb81 100644 --- a/spice/vd_agent.h +++ b/spice/vd_agent.h @@ -127,7 +127,7 @@ typedef struct SPICE_ATTR_PACKED VDAgentFileXferStatusMessage { * Type of data varies with the result: * result : data type (NULL if no data) * VD_AGENT_FILE_XFER_STATUS_ERROR : VDAgentFileXferStatusError - * VD_AGENT_FILE_XFER_STATUS_NOT_ENOUGH_SPACE : uint64_t + * VD_AGENT_FILE_XFER_STATUS_NOT_ENOUGH_SPACE : VDAgentFileXferStatusNotEnoughSpace * VD_AGENT_FILE_XFER_STATUS_SESSION_LOCKED : NULL * VD_AGENT_FILE_XFER_STATUS_VDAGENT_NOT_CONNECTED : NULL * VD_AGENT_FILE_XFER_STATUS_DISABLED : NULL @@ -135,6 +135,15 @@ typedef struct SPICE_ATTR_PACKED VDAgentFileXferStatusMessage { uint8_t data[0]; } VDAgentFileXferStatusMessage; +/* Detailed error for VD_AGENT_FILE_XFER_STATUS_NOT_ENOUGH_SPACE. + * Only present if VD_AGENT_CAP_FILE_XFER_DETAILED_ERRORS is + * negotiated and the size of the message can contain it. + */ +typedef struct SPICE_ATTR_PACKED VDAgentFileXferStatusNotEnoughSpace { + /* Disk free space in bytes. */ + uint64_t disk_free_space; +} VDAgentFileXferStatusNotEnoughSpace; + enum { /* Error number is a G_IO_ERROR_xxx defined in * https://developer.gnome.org/gio/stable/gio-GIOError.html |