mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
a4cc3d148a
structure does not have the same name. might find some bugs. svn:r449
18 lines
252 B
Plaintext
18 lines
252 B
Plaintext
/* 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 = 1;
|
|
string action = 2;
|
|
}
|
|
|
|
struct run {
|
|
string how = 1;
|
|
}
|