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 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel