Switch to Google protobufs and make UserStream

This commit is contained in:
Keith Winstein
2011-08-13 01:25:31 -04:00
parent a81f398200
commit 7e034c27aa
11 changed files with 213 additions and 91 deletions
+25
View File
@@ -0,0 +1,25 @@
option optimize_for = LITE_RUNTIME;
package ClientBuffers;
message UserMessage {
repeated Instruction instruction = 1;
}
message Instruction {
extensions 2 to max;
}
message Keystroke {
optional bytes keys = 4;
}
message ResizeMessage {
optional int32 width = 5;
optional int32 height = 6;
}
extend Instruction {
optional Keystroke keystroke = 2;
optional ResizeMessage resize = 3;
}