mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
36 lines
509 B
Plaintext
36 lines
509 B
Plaintext
|
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;
|