Reworked protocol to fit new simplified approch (first rough concept)
This commit is contained in:
40
backend.proto
Normal file
40
backend.proto
Normal file
@@ -0,0 +1,40 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package ledd;
|
||||
|
||||
message Backend {
|
||||
int32 channel = 3;
|
||||
string name = 4;
|
||||
string type = 5;
|
||||
string version = 6;
|
||||
int32 resolution = 7;
|
||||
|
||||
map<string, string> options = 10;
|
||||
}
|
||||
|
||||
message BackendSetAll {
|
||||
int32 value = 1;
|
||||
}
|
||||
|
||||
message BackendSetLocalDirect {
|
||||
int32 channel = 1;
|
||||
int32 value = 2;
|
||||
}
|
||||
|
||||
message BackendLEDOptions {
|
||||
map<string, string> options = 1;
|
||||
}
|
||||
|
||||
message BackendSetChannel {
|
||||
map <int32, int32> new_channel_values = 1;
|
||||
}
|
||||
|
||||
message BackendWrapperMessage {
|
||||
oneof msg {
|
||||
Backend m_backend = 2;
|
||||
BackendSetAll m_set_all = 3;
|
||||
BackendSetLocalDirect m_set_local_direct = 4;
|
||||
BackendLEDOptions m_options = 5;
|
||||
BackendSetChannel m_set_channel = 6;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user