home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / xap / gchess / xboard-3.0 / xboard-3 / xboard-3.0.pl9 / frontend.h < prev    next >
C/C++ Source or Header  |  1993-09-09  |  4KB  |  105 lines

  1. /*
  2.  * frontend.h -- Interface exported by all XBoard front ends
  3.  * $Id: frontend.h,v 1.6 1993/09/09 05:06:13 mann Exp $
  4.  *
  5.  * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts.
  6.  * Enhancements Copyright 1992-3 Free Software Foundation, Inc.
  7.  *
  8.  * XBoard borrows its colors, icon and piece bitmaps from XChess
  9.  * which was written and is copyrighted by Wayne Christopher.
  10.  *
  11.  * The following terms apply to Digital Equipment Corporation's copyright
  12.  * interest in XBoard:
  13.  * ------------------------------------------------------------------------
  14.  * All Rights Reserved
  15.  *
  16.  * Permission to use, copy, modify, and distribute this software and its
  17.  * documentation for any purpose and without fee is hereby granted,
  18.  * provided that the above copyright notice appear in all copies and that
  19.  * both that copyright notice and this permission notice appear in
  20.  * supporting documentation, and that the name of Digital not be
  21.  * used in advertising or publicity pertaining to distribution of the
  22.  * software without specific, written prior permission.
  23.  *
  24.  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  25.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  26.  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  27.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  28.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  29.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  30.  * SOFTWARE.
  31.  * ------------------------------------------------------------------------
  32.  *
  33.  * The following terms apply to the enhanced version of XBoard distributed
  34.  * by the Free Software Foundation:
  35.  * ------------------------------------------------------------------------
  36.  * This program is free software; you can redistribute it and/or modify
  37.  * it under the terms of the GNU General Public License as published by
  38.  * the Free Software Foundation; either version 2 of the License, or
  39.  * (at your option) any later version.
  40.  *
  41.  * This program is distributed in the hope that it will be useful,
  42.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  43.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  44.  * GNU General Public License for more details.
  45.  *
  46.  * You should have received a copy of the GNU General Public License
  47.  * along with this program; if not, write to the Free Software
  48.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  49.  * ------------------------------------------------------------------------
  50.  */
  51.  
  52.  
  53. void ModeHighlight P((void));
  54. void SetICSMode P((void));
  55. void SetGNUMode P((void));
  56. void SetNCPMode P((void));
  57. void DisplayMove P((int moveNumber));
  58. void DisplayTitle P((String title));
  59. void DisplayMessage P((String message));
  60. void DisplayError P((String message, int error));
  61. void DisplayFatalError P((String message, int error));
  62. void DrawPosition P((int fullRedraw, Board board));
  63. void ResetFrontEnd P((void));
  64. void CommentPopUp P((String comment));
  65. void CommentPopDown P((void));
  66. void EditCommentPopUp P((int index, String text));
  67.  
  68. void RingBell P((void));
  69. void EchoOn P((void));
  70. void EchoOff P((void));
  71. void Raw P((void));
  72.  
  73. char *UserName P((void));
  74. char *HostName P((void));
  75.  
  76. int ClockTimerRunning P((void));
  77. int StopClockTimer P((void));
  78. void StartClockTimer P((long millisec));
  79. void DisplayWhiteClock P((long timeRemaining, int highlight));
  80. void DisplayBlackClock P((long timeRemaining, int highlight));
  81.  
  82. int LoadGameTimerRunning P((void));
  83. int StopLoadGameTimer P((void));
  84. void StartLoadGameTimer P((long millisec));
  85. void AutoSaveGame P((void));
  86.  
  87. typedef VOIDSTAR ProcRef;
  88. #define NoProc ((ProcRef) 0)
  89. int StartChildProcess P((char *cmdLine, ProcRef *pr));
  90. void DestroyChildProcess P((ProcRef pr));
  91. void InterruptChildProcess P((ProcRef pr));
  92.  
  93. int OpenTelnet P((char *host, int port, ProcRef *pr));
  94. int OpenTCP P((char *host, int port, ProcRef *pr));
  95. int OpenCommPort P((char *name, ProcRef *pr));
  96.  
  97. typedef VOIDSTAR InputSourceRef;
  98. typedef void (*InputCallback) P((InputSourceRef isr, char *buf, int count, int error));
  99. InputSourceRef AddInputSource P((ProcRef pr, int lineByLine, InputCallback func));
  100. void RemoveInputSource P((InputSourceRef isr));
  101.  
  102. int OutputToProcess P((ProcRef pr, char *message, int count, int *outError));
  103.  
  104.  
  105.