Introduce a mechanism by which calls to midend_supersede_game_desc()

can trigger a call to a front end notification function. Use this to
update the game ID permalink when Mines supersedes its game ID.

[originally from svn r9793]
This commit is contained in:
Simon Tatham
2013-03-31 09:58:52 +00:00
parent bf696f83fc
commit bb14689b4a
4 changed files with 54 additions and 0 deletions

View File

@ -268,6 +268,8 @@ char *midend_deserialise(midend *me,
void *rctx);
char *identify_game(char **name, int (*read)(void *ctx, void *buf, int len),
void *rctx);
void midend_request_desc_changes(midend *me, void (*notify)(void *),
void *ctx);
/* Printing functions supplied by the mid-end */
char *midend_print_puzzle(midend *me, document *doc, int with_soln);
int midend_tilesize(midend *me);