summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spice.proto19
-rw-r--r--spice1.proto8
2 files changed, 22 insertions, 5 deletions
diff --git a/spice.proto b/spice.proto
index 513fe87..71be9ac 100644
--- a/spice.proto
+++ b/spice.proto
@@ -591,6 +591,11 @@ struct String {
} u @anon;
};
+struct StreamDataHeader {
+ uint32 id;
+ uint32 multi_media_time;
+};
+
channel DisplayChannel : BaseChannel {
server:
message {
@@ -637,10 +642,9 @@ channel DisplayChannel : BaseChannel {
} stream_create = 122;
message {
- uint32 id;
- uint32 multi_media_time;
+ StreamDataHeader base;
uint32 data_size;
- uint8 data[data_size] @end @nomarshal;
+ uint8 data[data_size] @end @nomarshal;
} stream_data;
message {
@@ -785,6 +789,15 @@ channel DisplayChannel : BaseChannel {
uint32 surface_id;
} @ctype(SpiceMsgSurfaceDestroy) surface_destroy;
+ message {
+ StreamDataHeader base;
+ uint32 width;
+ uint32 height;
+ Rect dest;
+ uint32 data_size;
+ uint8 data[data_size] @end @nomarshal;
+ } stream_data_sized;
+
client:
message {
uint8 pixmap_cache_id;
diff --git a/spice1.proto b/spice1.proto
index fa2524b..2ed1058 100644
--- a/spice1.proto
+++ b/spice1.proto
@@ -533,6 +533,11 @@ struct String {
} u @anon;
};
+struct StreamDataHeader {
+ uint32 id;
+ uint32 multi_media_time;
+};
+
channel DisplayChannel : BaseChannel {
server:
message {
@@ -580,8 +585,7 @@ channel DisplayChannel : BaseChannel {
} stream_create = 122;
message {
- uint32 id;
- uint32 multi_media_time;
+ StreamDataHeader base;
uint32 data_size;
uint32 pad_size @zero;
uint8 data[data_size] @end @nomarshal;