18 #define OptionNb 256
\r
27 const char * author;
\r
30 option_t option[OptionNb];
\r
46 move_t pv[LineSize];
\r
51 move_t best_pv[LineSize];
\r
58 move_t current_line[LineSize];
\r
69 EVENT_READY = 1 << 1,
\r
70 EVENT_STOP = 1 << 2,
\r
71 EVENT_MOVE = 1 << 3,
\r
73 EVENT_DEPTH = 1 << 5,
\r
74 EVENT_DRAW = 1 << 6,
\r
75 EVENT_RESIGN= 1 << 7
\r
80 extern uci_t Uci[1];
\r
84 extern void uci_open (uci_t * uci, engine_t * engine);
\r
85 extern void uci_send_isready (uci_t * uci);
\r
86 extern void uci_send_isready_sync (uci_t * uci);
\r
87 extern void uci_send_stop (uci_t * uci);
\r
88 extern void uci_send_stop_sync (uci_t * uci);
\r
89 extern void uci_send_ucinewgame (uci_t * uci);
\r
90 extern void uci_set_threads (uci_t * uci, int n);
\r
91 extern bool uci_thread_option_exist(uci_t * uci);
\r
92 extern const char * uci_thread_option(uci_t * uci);
\r
93 extern int uci_get_option (uci_t * uci, const char * name);
\r
95 extern bool uci_option_exist (uci_t * uci, const char option[]);
\r
96 extern void uci_send_option (uci_t * uci, const char option[], const char format[], ...);
\r
98 extern void uci_close (uci_t * uci);
\r
100 extern void uci_clear (uci_t * uci);
\r
102 extern int uci_parse (uci_t * uci, const char string[]);
\r
104 void uci_set_option(uci_t * uci,
\r
106 const char * default_,
\r
111 const char * var[]);
\r
113 #endif // !defined UCI_H
\r