changes from H.G. Muller; version 4.3.13
[xboard.git] / backendz.h
1 /*\r
2  * backendz.h -- Internal interface exported by XBoard backend.c to zippy.c\r
3  * $Id: backendz.h,v 2.1 2003/10/27 19:21:00 mann Exp $\r
4  *\r
5  * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts.\r
6  * Enhancements Copyright 1992-95 Free Software Foundation, Inc.\r
7  *\r
8  * The following terms apply to Digital Equipment Corporation's copyright\r
9  * interest in XBoard:\r
10  * ------------------------------------------------------------------------\r
11  * All Rights Reserved\r
12  *\r
13  * Permission to use, copy, modify, and distribute this software and its\r
14  * documentation for any purpose and without fee is hereby granted,\r
15  * provided that the above copyright notice appear in all copies and that\r
16  * both that copyright notice and this permission notice appear in\r
17  * supporting documentation, and that the name of Digital not be\r
18  * used in advertising or publicity pertaining to distribution of the\r
19  * software without specific, written prior permission.\r
20  *\r
21  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING\r
22  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL\r
23  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR\r
24  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\r
25  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,\r
26  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS\r
27  * SOFTWARE.\r
28  * ------------------------------------------------------------------------\r
29  *\r
30  * The following terms apply to the enhanced version of XBoard distributed\r
31  * by the Free Software Foundation:\r
32  * ------------------------------------------------------------------------\r
33  * This program is free software; you can redistribute it and/or modify\r
34  * it under the terms of the GNU General Public License as published by\r
35  * the Free Software Foundation; either version 2 of the License, or\r
36  * (at your option) any later version.\r
37  *\r
38  * This program is distributed in the hope that it will be useful,\r
39  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
40  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
41  * GNU General Public License for more details.\r
42  *\r
43  * You should have received a copy of the GNU General Public License\r
44  * along with this program; if not, write to the Free Software\r
45  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
46  * ------------------------------------------------------------------------\r
47  */\r
48 \r
49 #ifndef _BACKENDZ\r
50 #define _BACKENDZ\r
51 \r
52 #include "common.h"\r
53 #include "frontend.h"\r
54 \r
55 extern long whiteTimeRemaining, blackTimeRemaining;\r
56 extern int forwardMostMove;\r
57 extern char star_match[STAR_MATCH_N][MSG_SIZ];\r
58 extern ProcRef firstProgramPR;\r
59 extern int startedFromSetupPosition;\r
60 extern int firstMove;\r
61 extern GameInfo gameInfo;\r
62 extern void SendToICS P((char *s));\r
63 extern int looking_at P((char *, int *, char *));\r
64 extern void SendToProgram P((char *message, ChessProgramState *cps));\r
65 extern void SendBoard P((ChessProgramState *cps, int moveNum));\r
66 void SendTimeRemaining P((ChessProgramState *cps,\r
67                           int/*boolean*/ machineWhite));\r
68 \r
69 extern char ics_handle[];\r
70 extern char *ics_prefix;\r
71 \r
72 #endif\r