X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/bcbc922c950a48a4387ac0d719d4824fdaa91a2f..95568cbba202f550265c42840fd47401736fb442:/puzzles.h diff --git a/puzzles.h b/puzzles.h index c9cca05..e8a75c2 100644 --- a/puzzles.h +++ b/puzzles.h @@ -228,6 +228,7 @@ void print_line_dotted(drawing *dr, int dotted); midend *midend_new(frontend *fe, const game *ourgame, const drawing_api *drapi, void *drhandle); void midend_free(midend *me); +const game *midend_which_game(midend *me); void midend_set_params(midend *me, game_params *params); game_params *midend_get_params(midend *me); void midend_size(midend *me, int *x, int *y, int user_size); @@ -264,6 +265,8 @@ void midend_serialise(midend *me, char *midend_deserialise(midend *me, int (*read)(void *ctx, void *buf, int len), void *rctx); +char *identify_game(char **name, int (*read)(void *ctx, void *buf, int len), + void *rctx); /* Printing functions supplied by the mid-end */ char *midend_print_puzzle(midend *me, document *doc, int with_soln); int midend_tilesize(midend *me);