hyperion_request.fbs 553 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. namespace hyperionnet;
  2. // A priority value of -1 clears all priorities
  3. table Register {
  4. origin:string (required);
  5. priority:int;
  6. }
  7. table RawImage {
  8. data:[ubyte];
  9. width:int = -1;
  10. height:int = -1;
  11. }
  12. union ImageType {RawImage}
  13. // Either RGB or RGBA data can be transferred
  14. table Image {
  15. data:ImageType (required);
  16. duration:int = -1;
  17. }
  18. table Clear {
  19. priority:int;
  20. }
  21. table Color {
  22. data:int = -1;
  23. duration:int = -1;
  24. }
  25. union Command {Color, Image, Clear, Register}
  26. table Request {
  27. command:Command (required);
  28. }
  29. root_type Request;