blob: fff6326a448271bf1cc14020923eb360d031c9c2 [file] [log] [blame]
Ben Fredricksond69f38b2015-01-28 20:06:15 -08001package aos.common.actions;
2
3interface StatusInterface {
4 // 0 if the action isn't running or the value from goal.run.
5 uint32_t running;
6};
7
8interface GoalInterface {
9 // 0 to stop or an arbitrary value to put in status.running.
10 uint32_t run;
11};
12
13message Status {
14 // The run value of the instance we're currently running or 0.
15 uint32_t running;
16 // A run value we were previously running or 0.
17 uint32_t last_running;
18};
19
20message Goal {
21 // The unique value to put into status.running while running this instance or
22 // 0 to cancel.
23 uint32_t run;
24};
25
26interface ActionQueueGroup {
27 queue Status status;
28 queue Goal goal;
29};