ipc/chromium/src/third_party/libevent/test/regress.rpc

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ipc/chromium/src/third_party/libevent/test/regress.rpc	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +/* tests data packing and unpacking */
     1.5 +
     1.6 +struct msg {
     1.7 +	string /* sender */ from_name = 1; /* be verbose */
     1.8 +	string to_name = 2;
     1.9 +	optional struct[kill] attack = 3;
    1.10 +	array struct[run] run = 4;
    1.11 +}
    1.12 +
    1.13 +struct kill {
    1.14 +	string weapon = 0x10121;
    1.15 +	string action = 2;
    1.16 +	array int how_often = 3;
    1.17 +}
    1.18 +
    1.19 +struct run {
    1.20 +	string how = 1;
    1.21 +	optional bytes some_bytes = 2;
    1.22 +
    1.23 +	bytes fixed_bytes[24] = 3;
    1.24 +	array string notes = 4;
    1.25 +
    1.26 +	optional int64 large_number = 5;
    1.27 +	array int other_numbers = 6;
    1.28 +}

mercurial