blob: a0a6e9970fc4783b46045b55c6636bdf528a1d12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|