| 36 |
36 |
| 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, GameInfo *gameinfo); |
41 int read_pgn(FILE *stream, GameState *gamestate); |
| 42 void write_pgn(FILE* stream, GameState *gamestate, GameInfo *gameinfo, |
42 void write_pgn(FILE* stream, GameState *gamestate, bool export_comments); |
| 43 bool export_comments); |
|
| 44 void compute_fen(char *str, GameState *gamestate); |
43 void compute_fen(char *str, GameState *gamestate); |
| 45 |
44 |
| 46 const char *pgn_player_name(GameState *gamestate, uint8_t color); |
45 const char *pgn_player_name(GameState *gamestate, uint8_t color); |
| 47 |
46 |
| 48 const char* pgn_error_str(int code); |
47 const char* pgn_error_str(int code); |