[RFC PATH 3/3] Add error reports from server to guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 spice/stream-device.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/spice/stream-device.h b/spice/stream-device.h
index 61d9019..10060ad 100644
--- a/spice/stream-device.h
+++ b/spice/stream-device.h
@@ -54,6 +54,8 @@ typedef enum StreamDevType {
     STREAM_TYPE_DATA,
     /* server ask to start a new stream */
     STREAM_TYPE_START_STOP,
+    /* server notify errors to guest */
+    STREAM_TYPE_NOTIFY_ERROR,
 } StreamDevType;
 
 /* generic extension capabilities */
@@ -96,4 +98,20 @@ typedef struct StreamMsgStartStop {
     uint8_t codecs[0];
 } StreamMsgStartStop;
 
+/* Tell guest about invalid protocol.
+ * This message is sent by the host to the guest.
+ * The server will stop processing data from the guest.
+ */
+typedef struct StreamMsgNotifyError {
+    /* numeric error code.
+     * Currently not defined, set to 0.
+     */
+    uint32_t error_code;
+    /* String message, UTF-8 encoded.
+     * This field terminate with the message.
+     * Not necessary NUL-terminated.
+     */
+    uint8_t msg[0];
+} StreamMsgNotifyError;
+
 #endif /* SPICE_STREAM_DEVICE_H_ */
-- 
2.9.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]