src/chess/pgn.h

changeset 140
e92ffe046659
parent 130
3fc6b1d6cbe9
equal deleted inserted replaced
139:fa10bee331ac 140:e92ffe046659
37 #ifdef __cplusplus 37 #ifdef __cplusplus
38 extern "C" { 38 extern "C" {
39 #endif 39 #endif
40 40
41 int read_pgn(FILE *stream, GameState *gamestate); 41 int read_pgn(FILE *stream, GameState *gamestate);
42 int parse_pgn(const char *data, GameState *gamestate);
42 void write_pgn(FILE* stream, GameState *gamestate, bool export_comments); 43 void write_pgn(FILE* stream, GameState *gamestate, bool export_comments);
43 void compute_fen(char *str, GameState *gamestate); 44 void compute_fen(char *str, GameState *gamestate);
44 45
45 const char *pgn_player_name(GameState *gamestate, uint8_t color); 46 const char *pgn_player_name(GameState *gamestate, uint8_t color);
46 47

mercurial