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