aboutsummaryrefslogtreecommitdiff
path: root/netslide.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-05-01 12:53:41 +0000
committerSimon Tatham <anakin@pobox.com>2005-05-01 12:53:41 +0000
commit791940b043d500c096a56d57467b4b68ea31ce1f (patch)
treea8168dfaeb265abc278f9b9ff7897ecd0d911bb9 /netslide.c
parente72931bfe27e7d7303a22717cce05721551f3e4a (diff)
downloadpuzzles-791940b043d500c096a56d57467b4b68ea31ce1f.zip
puzzles-791940b043d500c096a56d57467b4b68ea31ce1f.tar.gz
puzzles-791940b043d500c096a56d57467b4b68ea31ce1f.tar.bz2
puzzles-791940b043d500c096a56d57467b4b68ea31ce1f.tar.xz
Introduced a new function in every game which formats a game_state
as text. This is used by front ends to implement copy-to-clipboard. Currently the function does nothing (and is disabled) in every game except Solo, but it's a start. [originally from svn r5724]
Diffstat (limited to 'netslide.c')
-rw-r--r--netslide.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/netslide.c b/netslide.c
index 9f334f6..11ca2ef 100644
--- a/netslide.c
+++ b/netslide.c
@@ -740,6 +740,11 @@ static void free_game(game_state *state)
sfree(state);
}
+static char *game_text_format(game_state *state)
+{
+ return NULL;
+}
+
/* ----------------------------------------------------------------------
* Utility routine.
*/
@@ -1532,6 +1537,7 @@ const struct game thegame = {
new_game,
dup_game,
free_game,
+ FALSE, game_text_format,
new_ui,
free_ui,
make_move,