[Spice-devel] [RFC PATCH 2/2] Add a message to control guest streaming
Frediano Ziglio
fziglio at redhat.com
Wed Jan 25 13:38:24 UTC 2017
Allows server to tell codec and start/stop the streaming
---
spice/stream-device.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/spice/stream-device.h b/spice/stream-device.h
index 3ecbee4..e8a32ac 100644
--- a/spice/stream-device.h
+++ b/spice/stream-device.h
@@ -51,6 +51,8 @@ typedef enum StreamDevType {
STREAM_TYPE_STREAM_FORMAT,
/* stream data */
STREAM_TYPE_DATA,
+ /* server ask to start a new stream */
+ STREAM_TYPE_STREAM_START,
} StreamDevType;
/* generic extension capabilities */
@@ -76,4 +78,13 @@ typedef struct StreamMsgData
uint8_t data[0];
} StreamMsgData;
+/* tell to start a new stream */
+typedef struct StreamMsgStart
+{
+ /* supported codecs, 0 to stop streaming */
+ uint8_t num_codecs;
+ /* as defined in SpiceVideoCodecType enumeration */
+ uint8_t codecs[0];
+} StreamMsgStart;
+
#endif /* SPICE_STREAM_DEVICE_H_ */
--
2.9.3
More information about the Spice-devel
mailing list