X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.h;h=8b45b16837782eb32088d34ca06f4b5a08af99a2;hb=6a974697d6cbe54bbb01dee7d1b34a3c5e149722;hp=4055ba4406a635edb7c05d31b0d64364c0062d3f;hpb=d9f4b584106f4d7477158476ff792f6fa0b2630a;p=xboard.git diff --git a/backend.h b/backend.h index 4055ba4..8b45b16 100644 --- a/backend.h +++ b/backend.h @@ -236,6 +236,10 @@ int PromoScroll P((int x, int y)); void EditBookEvent P((void)); Boolean DisplayBook P((int moveNr)); void SaveToBook P((char *text)); +int PackGame P((Board board)); +Boolean ParseFEN P((Board board, int *blackPlaysFirst, char *fen)); +void ApplyMove P((int fromX, int fromY, int toX, int toY, int promoChar, Board board)); +void PackMove P((int fromX, int fromY, int toX, int toY, ChessSquare promoPiece)); char *StrStr P((char *string, char *match)); char *StrCaseStr P((char *string, char *match)); @@ -280,6 +284,7 @@ typedef struct _ListGame { ListNode node; int number; int position; + int moves; unsigned long offset; /* Byte offset of game within file. */ GameInfo gameInfo; /* Note that some entries may be NULL. */ } ListGame; @@ -294,12 +299,15 @@ int GameListBuild P((FILE *)); void GameListInitGameInfo P((GameInfo *)); char *GameListLine P((int, GameInfo *)); char * GameListLineFull P(( int, GameInfo *)); +void InitSearch P((void)); +int GameContainsPosition P((FILE *f, ListGame *lg)); void GLT_TagsToList P(( char * tags )); void GLT_ParseList P((void)); void NamesToList P((char *name, char **engines, char **mnemonics)); int CreateTourney P((char *name)); char *MakeName P((char *templ)); void SwapEngines P((int n)); +void Substitute P((char *participants, int expunge)); extern char* StripHighlight P((char *)); /* returns static data */ extern char* StripHighlightAndTitle P((char *)); /* returns static data */ @@ -421,5 +429,8 @@ void SettingsPopUp P((ChessProgramState *cps)); // [HGM] really in front-end, bu int WaitForEngine P((ChessProgramState *cps, DelayedEventCallback x)); void Load P((ChessProgramState *cps, int n)); int MultiPV P((ChessProgramState *cps)); +void MoveHistorySet P(( char movelist[][2*MOVE_LEN], int first, int last, int current, ChessProgramStats_Move * pvInfo )); +void EvalGraphSet P(( int first, int last, int current, ChessProgramStats_Move * pvInfo )); +void MakeEngineOutputTitle P((void)); #endif /* _BACKEND */