src/chess/pgn.h

changeset 178
724e8acff6f8
parent 150
7d57a252948e
--- a/src/chess/pgn.h	Mon Aug 17 12:22:08 2026 +0200
+++ b/src/chess/pgn.h	Fri Aug 21 16:08:50 2026 +0200
@@ -52,11 +52,12 @@
 };
 
 int read_pgn(FILE *stream, GameState *gamestate);
+int write_pgn(FILE* stream, const GameState *gamestate, bool export_comments);
+
 int parse_pgn(const char *data, GameState *gamestate);
-void write_pgn(FILE* stream, GameState *gamestate, bool export_comments);
-void compute_fen(char *str, GameState *gamestate);
+char *create_pgn(const GameState *gamestate, bool export_comments);
 
-const char *pgn_player_name(GameState *gamestate, uint8_t color);
+const char *pgn_player_name(const GameState *gamestate, uint8_t color);
 
 const char* pgn_error_str(int code);
 size_t pgn_error_position(void);

mercurial