gtp.c: avoid compilation warning for sleep().
[pachi/ann.git] / gtp.h
blob3cb20e4988eac371bc2af893eddd23f202059251
1 #ifndef ZZGO_GTP_H
2 #define ZZGO_GTP_H
4 struct board;
5 struct engine;
6 struct time_info;
8 enum parse_code {
9 P_OK,
10 P_NOREPLY,
11 P_DONE_OK,
12 P_DONE_ERROR,
13 P_ENGINE_RESET,
14 P_UNKNOWN_COMMAND,
17 enum parse_code gtp_parse(struct board *b, struct engine *e, struct time_info *ti, char *buf);
18 void gtp_prefix(char prefix, int id);
19 void gtp_flush(void);
21 #define is_gamestart(cmd) (!strcasecmp((cmd), "boardsize"))
22 #define is_reset(cmd) (is_gamestart(cmd) || !strcasecmp((cmd), "clear_board"))
24 #endif