18 const int OptionNb = 256;
\r
25 const char * author;
\r
28 option_t option[OptionNb];
\r
44 move_t pv[LineSize];
\r
49 move_t best_pv[LineSize];
\r
56 move_t current_line[LineSize];
\r
64 enum dummy_event_t {
\r
67 EVENT_READY = 1 << 1,
\r
68 EVENT_STOP = 1 << 2,
\r
69 EVENT_MOVE = 1 << 3,
\r
71 EVENT_DEPTH = 1 << 5,
\r
72 EVENT_DRAW = 1 << 6,
\r
73 EVENT_RESIGN= 1 << 7
\r
78 extern uci_t Uci[1];
\r
82 extern void uci_open (uci_t * uci, engine_t * engine);
\r
83 extern void uci_send_isready (uci_t * uci);
\r
84 extern void uci_send_isready_sync (uci_t * uci);
\r
85 extern void uci_send_stop (uci_t * uci);
\r
86 extern void uci_send_stop_sync (uci_t * uci);
\r
87 extern void uci_send_ucinewgame (uci_t * uci);
\r
88 extern void uci_set_threads (uci_t * uci, int n);
\r
89 extern bool uci_thread_option_exist(uci_t * uci);
\r
90 extern const char * uci_thread_option(uci_t * uci);
\r
91 extern int uci_get_option (uci_t * uci, const char * name);
\r
93 extern bool uci_option_exist (uci_t * uci, const char option[]);
\r
94 extern void uci_send_option (uci_t * uci, const char option[], const char format[], ...);
\r
96 extern void uci_close (uci_t * uci);
\r
98 extern void uci_clear (uci_t * uci);
\r
100 extern int uci_parse (uci_t * uci, const char string[]);
\r
102 void uci_set_option(uci_t * uci,
\r
104 const char * default_,
\r
109 const char * var[]);
\r
111 #endif // !defined UCI_H
\r