X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.h;h=b93f81cbaee41d3ae3d882b3855f386742e533c7;hb=23aef45a07bfc84a29b7cb9099508324815a458b;hp=4055ba4406a635edb7c05d31b0d64364c0062d3f;hpb=d9f4b584106f4d7477158476ff792f6fa0b2630a;p=xboard.git diff --git a/backend.h b/backend.h index 4055ba4..b93f81c 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 */ @@ -311,9 +319,17 @@ int Explode P((Board board, int fromX, int fromY, int toX, int toY)); typedef enum { CheckBox, ComboBox, TextBox, Button, Spin, ResetButton, SaveButton, FileName, PathName, Slider, Message, Fractional, Label, Break, EndMark } Control; +/* Flags Option.min used for ComboBox: */ +#define COMBO_CALLBACK (1 << 0) +#define NO_GETTEXT (1 << 1) + +/* Flags for Option.min used for Button, SaveButton, EndMark: */ +#define SAME_ROW (1 << 0) +#define NO_OK (1 << 1) + typedef struct _OPT { // [HGM] options: descriptor of UCI-style option int value; // current setting, starts as default - int min; + int min; // Also used for flags int max; void *handle; // for use by front end void *target; // for use by front end @@ -421,5 +437,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 */