xref: /freebsd/contrib/libevent/test/regress.rpc (revision c6879c6c14eedbd060ba588a3129a6c60ebbe783)
1/* tests data packing and unpacking */
2
3struct msg {
4	string /* sender */ from_name = 1; /* be verbose */
5	string to_name = 2;
6	optional struct[kill] attack = 3;
7	array struct[run] run = 4;
8}
9
10struct kill {
11	string weapon = 0x10121;
12	string action = 2;
13	array int how_often = 3;
14}
15
16struct run {
17	string how = 1;
18	optional bytes some_bytes = 2;
19
20	bytes fixed_bytes[24] = 3;
21	array string notes = 4;
22
23	optional int64 large_number = 5;
24	array int other_numbers = 6;
25}
26