/*
* backend.h -- Interface exported by XBoard back end
- * $Id$
+ * $Id: backend.h,v 2.1 2003/10/27 19:21:00 mann Exp $
*
* Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts.
* Enhancements Copyright 1992-95 Free Software Foundation, Inc.
extern Board boards[];
char *CmailMsg P((void));
-char *PositionToFEN P((int move));
+/* Tord: Added the useFEN960 parameter in PositionToFEN() below */
+char *PositionToFEN P((int move, int useFEN960));
void EditPositionPasteFEN P((char *fen));
void TimeDelay P((long ms));
void SendMultiLineToICS P(( char *text ));
void AbortEvent P((void));
void AdjournEvent P((void));
void ResignEvent P((void));
+void UserAdjudicationEvent P((int result));
void StopObservingEvent P((void));
void StopExaminingEvent P((void));
void PonderNextMoveEvent P((int newState));
int GameListBuild P((FILE *));
void GameListInitGameInfo P((GameInfo *));
char *GameListLine P((int, GameInfo *));
+char * GameListLineFull P(( int, GameInfo *));
extern char* StripHighlight P((char *)); /* returns static data */
extern char* StripHighlightAndTitle P((char *)); /* returns static data */
-
typedef struct _CPS {
char *which;
int maybeThinking;
int analyzing;
int protocolVersion;
int initDone;
+
+ /* Added by Tord: */
+ int useFEN960; /* 0=use "KQkq" style FENs, 1=use "HAha" style FENs */
+ int useOOCastle; /* 0="O-O" notation for castling, 1="king capture rook" notation */
+ /* End of additions by Tord */
+
+ int scoreIsAbsolute; /* [AS] 0=don't know (standard), 1=score is always from white side */
} ChessProgramState;
extern ChessProgramState first, second;
+/* [AS] Search stats from chessprogram, for the played move */
+typedef struct {
+ int score; /* Centipawns */
+ int depth; /* Plies */
+ int time; /* Milliseconds */
+} ChessProgramStats_Move;
+
+extern ChessProgramStats_Move pvInfoList[MAX_MOVES];
+
#endif /* _BACKEND */