> > 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 */ This is only host -> guest. Perhaps the name is not really good as it allows to also stop the streaming passing an empty codec list. Note that MJPEG is always implemented by clients so there's no possibility that the list is empty just as client limitation. > +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_ */ TODO: there is no messages for bandwidth control (signal to guest that is using too much bandwidth or that can use more of it). Frediano _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel