summaryrefslogtreecommitdiff
path: root/include/uci/internals/response.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uci/internals/response.h')
-rw-r--r--include/uci/internals/response.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/uci/internals/response.h b/include/uci/internals/response.h
new file mode 100644
index 0000000..a0a6e99
--- /dev/null
+++ b/include/uci/internals/response.h
@@ -0,0 +1,24 @@
+#ifndef UCI_RESPONSE_H
+#define UCI_RESPONSE_H
+
+#include "uci/internals/command.h"
+#include "uci/state.h"
+
+enum {
+ UCI_STATE_INITIAL,
+ UCI_STATE_IDLE,
+ UCI_STATE_SYNC,
+ UCI_STATE_PING,
+ UCI_STATE_ACTIVE,
+ UCI_STATE_HALT,
+};
+
+void handle_uci(uci_state_t *state, uci_cmd_t cmd);
+void handle_initial(uci_state_t *state, uci_cmd_t cmd);
+void handle_idle(uci_state_t *state, uci_cmd_t cmd);
+void handle_sync(uci_state_t *state, uci_cmd_t cmd);
+void handle_ping(uci_state_t *state, uci_cmd_t cmd);
+void handle_active(uci_state_t *state, uci_cmd_t cmd);
+void handle_halt(uci_state_t *state, uci_cmd_t cmd);
+
+#endif // UCI_RESPONSE_H