summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2026-05-01 17:28:07 +0000
committeronelin <oscar@nelin.dk>2026-05-01 17:28:07 +0000
commit4332b32f6007d3c50f043972f16a55af65caa998 (patch)
treec04988d9f5be3690fbd71bc1289f1eb6769e4ad8 /config.h
parent02f1cdaaf6660e70d3a609f0e0ec397287777303 (diff)
Add message queue and controller source program
Diffstat (limited to 'config.h')
-rw-r--r--config.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..6c08192
--- /dev/null
+++ b/config.h
@@ -0,0 +1,34 @@
+enum action {
+ nop = 0,
+
+ update,
+
+ ACTION_MAX,
+};
+
+enum element_e {
+ ELEMENT_INVALID = 0,
+
+#define ELEMENT(name, _arg, _minutes, _seconds) \
+ ELEMENT_##name,
+#include "config.def.h"
+#undef ELEMENT
+
+ ELEMENT_MAX,
+};
+
+const char* element_str[] = {
+ [ELEMENT_INVALID] = "ELEMENT_INVALID",
+
+#define ELEMENT(name, arg, _minutes, _seconds) \
+ [ELEMENT_##name] = "ELEMENT_" #name,
+#include "config.def.h"
+#undef ELEMENT
+};
+
+struct message_t {
+ enum element_e element;
+ enum action action;
+};
+
+