summaryrefslogtreecommitdiffstats
path: root/apps/plugins/chessbox/gnuchess.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-23 21:16:51 +0000
committerDave Chapman <dave@dchapman.com>2006-02-23 21:16:51 +0000
commita3cfe0a434fd1ef5e4a59e34499d10cd0211f76b (patch)
treeca8a479c1b6a73a75b829c8799813747e20408ac /apps/plugins/chessbox/gnuchess.h
parente37654521144e1d224f0044268643f20e3b8a363 (diff)
downloadrockbox-a3cfe0a434fd1ef5e4a59e34499d10cd0211f76b.tar.gz
rockbox-a3cfe0a434fd1ef5e4a59e34499d10cd0211f76b.zip
Fixes to Chessclock from Miguel (to make it work again after we broke his patch), plus iPod button mapping changes from me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8816 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/chessbox/gnuchess.h')
-rw-r--r--apps/plugins/chessbox/gnuchess.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/chessbox/gnuchess.h b/apps/plugins/chessbox/gnuchess.h
index 6ea77dc00b..68ef9f9a81 100644
--- a/apps/plugins/chessbox/gnuchess.h
+++ b/apps/plugins/chessbox/gnuchess.h
@@ -19,7 +19,7 @@
#define valueQ 1100
#define valueK 1200
-
+/* ---- chess system global variables ---- */
extern short mate,opponent,computer;
extern short locn[8][8];
extern short board[64];
@@ -27,7 +27,10 @@ extern short color[64];
extern long Level;
extern short TCflag,TCmoves,TCminutes;
+/* ---- RockBox integration ---- */
+extern struct plugin_api* rb;
+/* ---- The beginning of a GNUChess v2 APIfication ---- */
void SetTimeControl(void);
void GNUChess_Initialize(void);
int VerifyMove(char s[],short iop,unsigned short *mv);