mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
add flatbuffer dependencies
This commit is contained in:
35
libsrc/flatbufserver/hyperion_request.fbs
Normal file
35
libsrc/flatbufserver/hyperion_request.fbs
Normal file
@@ -0,0 +1,35 @@
|
||||
namespace flatbuf;
|
||||
|
||||
enum Command : int {
|
||||
COLOR = 0,
|
||||
IMAGE = 1,
|
||||
CLEAR = 2,
|
||||
CLEARALL = 3,
|
||||
}
|
||||
|
||||
table HyperionRequest {
|
||||
command:Command;
|
||||
colorRequest:flatbuf.ColorRequest;
|
||||
imageRequest:flatbuf.ImageRequest;
|
||||
clearRequest:flatbuf.ClearRequest;
|
||||
}
|
||||
|
||||
table ColorRequest {
|
||||
priority:int;
|
||||
RgbColor:int;
|
||||
duration:int;
|
||||
}
|
||||
|
||||
table ImageRequest {
|
||||
priority:int;
|
||||
imagewidth:int;
|
||||
imageheight:int;
|
||||
imagedata:[ubyte];
|
||||
duration:int;
|
||||
}
|
||||
|
||||
table ClearRequest {
|
||||
priority:int;
|
||||
}
|
||||
|
||||
root_type HyperionRequest;
|
Reference in New Issue
Block a user