summaryrefslogtreecommitdiff
path: root/apps/plugins/chessbox/chessbox_pgn.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chessbox/chessbox_pgn.h')
-rw-r--r--apps/plugins/chessbox/chessbox_pgn.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/chessbox/chessbox_pgn.h b/apps/plugins/chessbox/chessbox_pgn.h
index 672bacaf6e..a457619887 100644
--- a/apps/plugins/chessbox/chessbox_pgn.h
+++ b/apps/plugins/chessbox/chessbox_pgn.h
@@ -350,35 +350,35 @@ struct pgn_game_node {
350 * the user selects a game, that obviously saves processing 350 * the user selects a game, that obviously saves processing
351 * and speeds up response when the user selects the file 351 * and speeds up response when the user selects the file
352 */ 352 */
353struct pgn_game_node* pgn_list_games(struct plugin_api* api, 353struct pgn_game_node* pgn_list_games(const struct plugin_api* api,
354 const char* filename); 354 const char* filename);
355 355
356/* Show the list of games found in a file and allow the user 356/* Show the list of games found in a file and allow the user
357 * to select a game to be parsed and showed 357 * to select a game to be parsed and showed
358 */ 358 */
359struct pgn_game_node* pgn_show_game_list(struct plugin_api* api, 359struct pgn_game_node* pgn_show_game_list(const struct plugin_api* api,
360 struct pgn_game_node* first_game); 360 struct pgn_game_node* first_game);
361 361
362/* Parse the pgn string of a game and assign it to the move 362/* Parse the pgn string of a game and assign it to the move
363 * list in the structure 363 * list in the structure
364 */ 364 */
365void pgn_parse_game(struct plugin_api* api, const char* filename, 365void pgn_parse_game(const struct plugin_api* api, const char* filename,
366 struct pgn_game_node* selected_game); 366 struct pgn_game_node* selected_game);
367 367
368/* Initialize a new game structure with default values and make 368/* Initialize a new game structure with default values and make
369 * it ready to store the history of a newly played match 369 * it ready to store the history of a newly played match
370 */ 370 */
371struct pgn_game_node* pgn_init_game(struct plugin_api* api); 371struct pgn_game_node* pgn_init_game(const struct plugin_api* api);
372 372
373/* Add a new ply to the game structure based on the positions */ 373/* Add a new ply to the game structure based on the positions */
374void pgn_append_ply(struct plugin_api* api, struct pgn_game_node* game, 374void pgn_append_ply(const struct plugin_api* api, struct pgn_game_node* game,
375 unsigned short ply_player, char *move_buffer, bool is_mate); 375 unsigned short ply_player, char *move_buffer, bool is_mate);
376 376
377/* Set the result of the game if it was reached during the opponent's ply 377/* Set the result of the game if it was reached during the opponent's ply
378 */ 378 */
379void pgn_set_result(struct plugin_api* api, struct pgn_game_node* game, 379void pgn_set_result(const struct plugin_api* api, struct pgn_game_node* game,
380 bool is_mate); 380 bool is_mate);
381 381
382/* Store a complete game in the PGN history file 382/* Store a complete game in the PGN history file
383 */ 383 */
384void pgn_store_game(struct plugin_api* api, struct pgn_game_node* game); 384void pgn_store_game(const struct plugin_api* api, struct pgn_game_node* game);