[RFC PATH 2/3] Add a message to control guest streaming

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

 



Allows server to tell codec and start/stop the streaming
---
 spice/stream-device.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/spice/stream-device.h b/spice/stream-device.h
index 4d1e3a2..61d9019 100644
--- a/spice/stream-device.h
+++ b/spice/stream-device.h
@@ -52,6 +52,8 @@ typedef enum StreamDevType {
     STREAM_TYPE_FORMAT,
     /* stream data */
     STREAM_TYPE_DATA,
+    /* server ask to start a new stream */
+    STREAM_TYPE_START_STOP,
 } StreamDevType;
 
 /* generic extension capabilities */
@@ -80,4 +82,18 @@ typedef struct StreamMsgData {
     uint8_t data[0];
 } StreamMsgData;
 
+/* Tell to stop current stream and possibly start a new one.
+ * This message is sent by the host to the guest.
+ * Allows to communicate the codecs supported by the clients.
+ * The agent should stop the old stream and if any codec in the
+ * list is supported start streaming (as Mjpeg is always supported
+ * agent should stop only on a real stop request).
+ */
+typedef struct StreamMsgStartStop {
+    /* supported codecs, 0 to stop streaming */
+    uint8_t num_codecs;
+    /* as defined in SpiceVideoCodecType enumeration */
+    uint8_t codecs[0];
+} StreamMsgStartStop;
+
 #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]