summaryrefslogtreecommitdiff
path: root/tools/dfagen/examples/ex2_robot.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dfagen/examples/ex2_robot.h')
-rw-r--r--tools/dfagen/examples/ex2_robot.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/dfagen/examples/ex2_robot.h b/tools/dfagen/examples/ex2_robot.h
new file mode 100644
index 00000000..0ceb7949
--- /dev/null
+++ b/tools/dfagen/examples/ex2_robot.h
@@ -0,0 +1,18 @@
+#ifndef ex2_robot_h
+#define ex2_robot_h
+/* Example 2 type definition. */
+
+#include "ex2.h"
+
+/* Robot structure. */
+struct robot_t
+{
+ /* The generated FSM. */
+ ex2_state_t fsm;
+ /* True for command with ice. */
+ int ice;
+ /* Number of glasses in the bottle. */
+ int bottle;
+};
+
+#endif /* ex2_robot_h */