hyperion.ng/libsrc/flatbufserver/hyperion_request.fbs

39 lines
553 B
Plaintext
Raw Normal View History

2018-12-30 22:07:53 +01:00
namespace hyperionnet;
2018-12-28 17:55:49 +01:00
2018-12-30 22:07:53 +01:00
// A priority value of -1 clears all priorities
table Register {
origin:string (required);
priority:int;
2018-12-28 17:55:49 +01:00
}
2018-12-30 22:07:53 +01:00
table RawImage {
data:[ubyte];
width:int = -1;
height:int = -1;
2018-12-28 17:55:49 +01:00
}
2018-12-30 22:07:53 +01:00
union ImageType {RawImage}
// Either RGB or RGBA data can be transferred
2018-12-30 22:07:53 +01:00
table Image {
data:ImageType (required);
duration:int = -1;
2018-12-28 17:55:49 +01:00
}
2018-12-30 22:07:53 +01:00
table Clear {
2018-12-28 17:55:49 +01:00
priority:int;
}
2018-12-30 22:07:53 +01:00
table Color {
data:int = -1;
duration:int = -1;
}
union Command {Color, Image, Clear, Register}
table Request {
command:Command (required);
2018-12-28 17:55:49 +01:00
}
2018-12-30 22:07:53 +01:00
root_type Request;