46 lines
1.1 KiB
Protocol Buffer
46 lines
1.1 KiB
Protocol Buffer
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;
|
|
};
|
|
service PlaybackProcessService {
|
|
rpc Render(RenderCommand) returns (RenderResponseOrError) {}
|
|
rpc Get(GetProperty) returns (PropertyDataOrError) {}
|
|
rpc Set(SetProperty) returns (MaybeError) {}
|
|
rpc Reset(ResetProperty) returns (ResetResponse) {}
|
|
rpc Quit(QuitCmd) returns (MaybeError) {}
|
|
rpc Init(InitCommand) returns (MaybeError) {}
|
|
};
|
|
service HostProcess {
|
|
rpc WriteLog(LogMessage) returns (SimpleAckResponse) {}
|
|
rpc SetAddress(StringProperty) returns (MaybeError) {}
|
|
};
|