2024-08-08 13:12:37 -07:00
|
|
|
syntax = "proto3";
|
|
|
|
import "common.proto";
|
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
message RenderCommand {
|
|
|
|
uint64 len = 201;
|
|
|
|
};
|
|
|
|
message InitResponse {
|
|
|
|
};
|
|
|
|
message QuitCmd {
|
|
|
|
|
|
|
|
};
|
|
|
|
message RenderResponse {
|
|
|
|
uint64 len = 302;
|
|
|
|
bytes data = 303;
|
|
|
|
};
|
|
|
|
message LogMessage {
|
|
|
|
uint64 timespec = 6000;
|
|
|
|
uint32 level = 6001;
|
|
|
|
string msg = 6002;
|
|
|
|
};
|
|
|
|
message RenderResponseOrError {
|
|
|
|
oneof data {
|
|
|
|
RenderResponse output = 1;
|
|
|
|
ErrorResponse err = 2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
message SimpleAckResponse {
|
|
|
|
|
|
|
|
};
|
|
|
|
message InitCommand {
|
|
|
|
string filename = 1;
|
|
|
|
uint64 idx = 2;
|
2024-10-19 10:19:08 -07:00
|
|
|
};
|
|
|
|
message GetPropertyListCommand {
|
|
|
|
|
2024-08-08 13:12:37 -07:00
|
|
|
};
|
2024-09-28 10:31:06 -07:00
|
|
|
message RPCCall {
|
|
|
|
uint64 cmdid = 1;
|
|
|
|
oneof cmd {
|
|
|
|
RenderCommand render = 2;
|
|
|
|
GetProperty get = 3;
|
|
|
|
SetProperty set = 4;
|
|
|
|
ResetProperty reset = 5;
|
|
|
|
QuitCmd quit = 6;
|
|
|
|
InitCommand init = 7;
|
2024-10-19 10:19:08 -07:00
|
|
|
GetPropertyListCommand get_property_list = 8;
|
2024-09-28 10:31:06 -07:00
|
|
|
};
|
|
|
|
};
|
2024-10-19 10:19:08 -07:00
|
|
|
message PropertyList {
|
|
|
|
repeated Property list = 1;
|
|
|
|
}
|
2024-09-28 10:31:06 -07:00
|
|
|
message RPCResponse {
|
|
|
|
uint64 cmdid = 1;
|
|
|
|
oneof response {
|
|
|
|
SimpleAckResponse ack = 2;
|
|
|
|
RenderResponse render = 3;
|
|
|
|
PropertyData data = 4;
|
|
|
|
ResetResponse reset = 5;
|
|
|
|
ErrorResponse err = 6;
|
2024-10-19 10:19:08 -07:00
|
|
|
PropertyList property_list = 7;
|
2024-09-28 10:31:06 -07:00
|
|
|
};
|
2024-08-08 13:12:37 -07:00
|
|
|
};
|