summaryrefslogtreecommitdiff
path: root/spice1.proto
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-06-29 21:42:59 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:46 +0100
commite42c910b5cb5e6de734064fb57832a6e73e34092 (patch)
tree382bd8140c47a44ac502f9183cd67e893f81e167 /spice1.proto
parent140cf2aa795abf20482eb6684f15aef5d187ebca (diff)
Store SpicePath segment count rather than size
Internally and in the network protocol (for the new version) we now store the actual number of segments rather than the size of the full segments array in bytes. This change consists of multiple changes to handle this: * Make the qxl parser calculate num_segments * Make the canvas stroke code handle the new SpicePath layout. * Fix up is_equal_path in red_worker.c for the new layout * replace multiple calls to spice_marshall_PathSegment with a single spice_marshall_Path call * Make the byte_size() array size handling do the conversion from network size to number of elements when marshalling/demarshalling. * Update the current spice protocol to send the segment count rather than the size * Update the old spice protocol to use the new byte_size functionallity to calculate the size sent and the number of elements recieved
Diffstat (limited to 'spice1.proto')
-rw-r--r--spice1.proto4
1 files changed, 2 insertions, 2 deletions
diff --git a/spice1.proto b/spice1.proto
index 75749af..0150de2 100644
--- a/spice1.proto
+++ b/spice1.proto
@@ -374,8 +374,8 @@ struct PathSegment {
} @ctype(SpicePathSeg);
struct Path {
- uint32 size;
- PathSegment segments[bytes(size)] @end;
+ uint32 segments_size @bytes_count;
+ PathSegment segments[bytes(segments_size, num_segments)] @end;
};
struct Clip {