diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-06-28 17:05:05 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-06-28 17:05:05 +0000 |
| commit | 7011028b17064071e5d557728bf2e5bfcf40de45 (patch) | |
| tree | a3fda641ed2047a99a31eb0e15778e853e67641b /puzzles.h | |
| parent | 89fdc09c29f1219a7660ad6d1839cc914a009c02 (diff) | |
| download | puzzles-7011028b17064071e5d557728bf2e5bfcf40de45.zip puzzles-7011028b17064071e5d557728bf2e5bfcf40de45.tar.gz puzzles-7011028b17064071e5d557728bf2e5bfcf40de45.tar.bz2 puzzles-7011028b17064071e5d557728bf2e5bfcf40de45.tar.xz | |
Actually implemented the serialise/deserialise functions in
midend.c. Also I've added an experimental front end in gtk.c only:
`Save' and `Load' options on the Game menu, which don't even show up
unless you define the magic environment variable
PUZZLES_EXPERIMENTAL_SAVE. Once I'm reasonably confident that the
whole edifice is plausibly stable, I'll take that out and turn it
into a supported feature (and also implement it in OS X and Windows
and write documentation).
[originally from svn r6030]
Diffstat (limited to 'puzzles.h')
| -rw-r--r-- | puzzles.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -186,6 +186,12 @@ char *midend_text_format(midend_data *me); char *midend_solve(midend_data *me); void midend_supersede_game_desc(midend_data *me, char *desc, char *privdesc); char *midend_rewrite_statusbar(midend_data *me, char *text); +void midend_serialise(midend_data *me, + void (*write)(void *ctx, void *buf, int len), + void *wctx); +char *midend_deserialise(midend_data *me, + int (*read)(void *ctx, void *buf, int len), + void *rctx); /* * malloc.c |