[Spice-devel] [RFC protocol 2/2] Adding LZ4 compression common caps and LZ4 stream type

Snir Sheriber ssheribe at redhat.com
Thu Mar 2 16:53:31 UTC 2017


Assuming LZ4 capabilities could handle both LZ4 stream message
and regular LZ4 compressed message
---
 spice/enums.h    | 1 +
 spice/protocol.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/spice/enums.h b/spice/enums.h
index a931497..136813c 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -124,6 +124,7 @@ typedef enum SpicePubkeyType {
 typedef enum SpiceDataCompressionType {
     SPICE_DATA_COMPRESSION_TYPE_NONE,
     SPICE_DATA_COMPRESSION_TYPE_LZ4,
+    SPICE_DATA_COMPRESSION_TYPE_STREAM_LZ4,
 
     SPICE_DATA_COMPRESSION_TYPE_ENUM_END
 } SpiceDataCompressionType;
diff --git a/spice/protocol.h b/spice/protocol.h
index cbf2f01..9831ee5 100644
--- a/spice/protocol.h
+++ b/spice/protocol.h
@@ -57,6 +57,7 @@ enum {
     SPICE_COMMON_CAP_AUTH_SPICE,
     SPICE_COMMON_CAP_AUTH_SASL,
     SPICE_COMMON_CAP_MINI_HEADER,
+    SPICE_COMMON_CAP_LZ4_COMPRESSION,
 };
 
 typedef struct SPICE_ATTR_PACKED SpiceLinkMess {
-- 
2.9.3



More information about the Spice-devel mailing list