X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.h;h=8b45b16837782eb32088d34ca06f4b5a08af99a2;hb=7fe8df6abd50d72bcfc86a6d559a6b13b5af3821;hp=6f08f919c6f88a89cdab93c43ccc91d45c6e608d;hpb=4103b43cdbc7412da6a2a95e0e1882a3872a2d12;p=xboard.git diff --git a/backend.h b/backend.h index 6f08f91..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,6 +299,8 @@ 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));