File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libevent / test / regress.rpc
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:02:54 2012 UTC (12 years, 11 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

/* 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;
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>