2012-03-09 10:42:22 -07:00
|
|
|
package dfproto;
|
|
|
|
|
|
|
|
option optimize_for = LITE_RUNTIME;
|
|
|
|
|
|
|
|
message CoreTextFragment {
|
|
|
|
required string text = 1;
|
|
|
|
|
|
|
|
enum Color {
|
|
|
|
COLOR_BLACK = 0;
|
|
|
|
COLOR_BLUE = 1;
|
|
|
|
COLOR_GREEN = 2;
|
|
|
|
COLOR_CYAN = 3;
|
|
|
|
COLOR_RED = 4;
|
|
|
|
COLOR_MAGENTA = 5;
|
|
|
|
COLOR_BROWN = 6;
|
|
|
|
COLOR_GREY = 7;
|
|
|
|
COLOR_DARKGREY = 8;
|
|
|
|
COLOR_LIGHTBLUE = 9;
|
|
|
|
COLOR_LIGHTGREEN = 10;
|
|
|
|
COLOR_LIGHTCYAN = 11;
|
|
|
|
COLOR_LIGHTRED = 12;
|
|
|
|
COLOR_LIGHTMAGENTA = 13;
|
|
|
|
COLOR_YELLOW = 14;
|
|
|
|
COLOR_WHITE = 15;
|
|
|
|
};
|
|
|
|
optional Color color = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CoreTextNotification {
|
|
|
|
repeated CoreTextFragment fragments = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CoreErrorNotification {
|
|
|
|
enum ErrorCode {
|
2012-03-16 04:11:46 -06:00
|
|
|
CR_LINK_FAILURE = -3;
|
2012-03-09 10:42:22 -07:00
|
|
|
CR_WOULD_BREAK = -2;
|
|
|
|
CR_NOT_IMPLEMENTED = -1;
|
2012-03-14 09:57:29 -06:00
|
|
|
CR_OK = 0;
|
|
|
|
CR_FAILURE = 1;
|
2012-03-09 10:42:22 -07:00
|
|
|
CR_WRONG_USAGE = 2;
|
2012-03-15 03:01:23 -06:00
|
|
|
CR_NOT_FOUND = 3;
|
2012-03-09 10:42:22 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
required ErrorCode code = 1;
|
|
|
|
}
|
|
|
|
|
2012-03-15 01:07:43 -06:00
|
|
|
message EmptyMessage {}
|
2012-03-14 09:57:29 -06:00
|
|
|
|
2012-03-15 05:33:19 -06:00
|
|
|
message IntMessage {
|
|
|
|
required int32 value = 1;
|
|
|
|
}
|
|
|
|
|
2012-03-16 04:11:46 -06:00
|
|
|
message IntListMessage {
|
|
|
|
repeated int32 value = 1;
|
|
|
|
}
|
|
|
|
|
2012-03-15 05:33:19 -06:00
|
|
|
message StringMessage {
|
|
|
|
required string value = 1;
|
|
|
|
}
|
|
|
|
|
2012-03-16 04:11:46 -06:00
|
|
|
message StringListMessage {
|
|
|
|
repeated string value = 1;
|
|
|
|
}
|
|
|
|
|
2012-03-19 01:33:30 -06:00
|
|
|
// RPC BindMethod : CoreBindRequest -> CoreBindReply
|
2012-03-09 10:42:22 -07:00
|
|
|
message CoreBindRequest {
|
|
|
|
required string method = 1;
|
2012-03-14 09:57:29 -06:00
|
|
|
required string input_msg = 2;
|
|
|
|
required string output_msg = 3;
|
|
|
|
optional string plugin = 4;
|
2012-03-09 10:42:22 -07:00
|
|
|
}
|
|
|
|
message CoreBindReply {
|
|
|
|
required int32 assigned_id = 1;
|
|
|
|
}
|
|
|
|
|
2012-03-19 01:33:30 -06:00
|
|
|
// RPC RunCommand : CoreRunCommandRequest -> EmptyMessage
|
2012-03-14 09:57:29 -06:00
|
|
|
message CoreRunCommandRequest {
|
2012-03-09 10:42:22 -07:00
|
|
|
required string command = 1;
|
|
|
|
repeated string arguments = 2;
|
|
|
|
}
|
2012-03-19 01:33:30 -06:00
|
|
|
|
|
|
|
// RPC CoreSuspend : EmptyMessage -> IntMessage
|
|
|
|
// RPC CoreResume : EmptyMessage -> IntMessage
|