hyperion.ng/libsrc/flatbufserver/hyperion_request.fbs

36 lines
509 B
Plaintext
Raw Normal View History

2018-12-28 17:55:49 +01:00
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;