Files
mosh/src/protobufs/userinput.proto
T
Anders Kaseorg 57e54c46bc Specify syntax = "proto2" to silence warning with protobuf 3
[libprotobuf WARNING google/protobuf/compiler/parser.cc:491] No syntax
specified for the proto file. Please use 'syntax = "proto2";' or
'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2
syntax.)

The release notes say a future release will turn this warning into an
error.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-10-31 23:55:26 -04:00

28 lines
424 B
Protocol Buffer

syntax = "proto2";
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;
}