Convert aos over to flatbuffers
Everything builds, and all the tests pass. I suspect that some entries
are missing from the config files, but those will be found pretty
quickly on startup.
There is no logging or live introspection of queue messages.
Change-Id: I496ee01ed68f202c7851bed7e8786cee30df29f5
diff --git a/aos/actions/actions.fbs b/aos/actions/actions.fbs
new file mode 100644
index 0000000..0ce41fc
--- /dev/null
+++ b/aos/actions/actions.fbs
@@ -0,0 +1,24 @@
+namespace aos.common.actions;
+
+table Status {
+ // The run value of the instance we're currently running or 0.
+ running:uint;
+ // A run value we were previously running or 0.
+ last_running:uint;
+ // If false the action failed to complete and may be in a bad state,
+ // this is a critical problem not a cancellation.
+ success:bool;
+}
+
+table DoubleParam {
+ val:double;
+}
+
+table Goal {
+ // The unique value to put into status.running while running this instance or
+ // 0 to cancel.
+ run:uint;
+ // Default parameter. The more useful thing to do would be to define your own
+ // goal type to change param to a useful structure.
+ params:DoubleParam;
+}