spice-common/tests/test-marshallers.proto
Frediano Ziglio 2b5cadcd8a test-marshallers: Check for "zero" attribute
Check the previous fix for "zero" attribute works correctly
(commit bc9df58162, "marshal: Fix a bug
with zero attribute").

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2018-07-03 12:25:31 +01:00

22 lines
384 B
Protocol Buffer

channel TestChannel {
message {
uint8 dummy_byte; // so structure is not aligned
uint32 data_size;
uint64 *data[data_size] @marshall;
} ShortDataSubMarshall;
message {
int8 name[];
} ArrayMessage;
message {
uint8 res1 @zero;
uint16 n;
uint32 res2 @zero;
} Zeroes;
};
protocol Spice {
TestChannel main = 1;
};