X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=engineoutput.h;h=522e0ef8cc87b4e96f8edb03a8dda5f6e1fb13a1;hb=8baea05c6e9e63f8b1b57891b67b5ac0e1961b81;hp=bab71f8e61d16561b222a3dbd47a0ea5bc75e71e;hpb=dcb381e902c84b25e2a7301c5ba1d9f437503b5b;p=xboard.git diff --git a/engineoutput.h b/engineoutput.h index bab71f8..522e0ef 100644 --- a/engineoutput.h +++ b/engineoutput.h @@ -51,17 +51,14 @@ #define ICON_SIZE 14 -#define STATE_UNKNOWN -1 -#define STATE_THINKING 0 -#define STATE_IDLE 1 -#define STATE_PONDERING 2 -#define STATE_ANALYZING 3 +enum ENGINE_STATE { STATE_UNKNOWN, STATE_THINKING, STATE_IDLE, STATE_PONDERING, STATE_ANALYZING }; extern int windowMode; extern char exclusionHeader[]; +extern int highTextStart[2], highTextEnd[2]; // back-end called by front-end -void SetEngineState( int which, int state, char * state_data ); +void SetEngineState( int which, enum ENGINE_STATE state, char * state_data ); // front-end called by back-end void SetEngineColorIcon( int which ); @@ -70,12 +67,8 @@ void DoSetWindowText(int which, int field, char *s_label); void InsertIntoMemo( int which, char * text, int where ); void DoClearMemo(int which); void ResizeWindowControls( int mode ); -int EngineOutputDialogExists(); +int EngineOutputDialogExists(); void SetEngineOutputTitle( char *title ); -void InitializeEngineOutput P((Option *opt, Option *memo2)); -void DrawIcon P((Option *opt, int nIcon)); - -// front-end shared with xboard.c -void SelectPV P((Widget w, XEvent * event, String * params, Cardinal * nParams)); -void StopPV P((Widget w, XEvent * event, String * params, Cardinal * nParams)); +void InitEngineOutput P((Option *opt, Option *memo2)); // XB only +void DrawWidgetIcon P((Option *opt, int nIcon)); // XB only