File: regress.rpc

package info (click to toggle)
libevent 1.4.13-stable-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,496 kB
  • ctags: 1,920
  • sloc: ansic: 15,654; sh: 8,649; python: 1,101; makefile: 163
file content (20 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* tests data packing and unpacking */

struct msg {
	string from_name = 1;
	string to_name = 2;
	optional struct[kill] attack = 3;
	array struct[run] run = 4;
}

struct kill {
	string weapon = 0x10121;
	string action = 2;
	optional int how_often = 3;
}

struct run {
	string how = 1;
	optional bytes some_bytes = 2;
	bytes fixed_bytes[24] = 3;
}