]> arthur.barton.de Git - netatalk.git/blob - libevent/test/regress.rpc
Add libevent
[netatalk.git] / libevent / test / regress.rpc
1 /* tests data packing and unpacking */
2
3 struct 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
10 struct kill {
11         string weapon = 0x10121;
12         string action = 2;
13         array int how_often = 3;
14 }
15
16 struct 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 }