Fix some warnings and header-file improvement
[xboard.git] / xboard.h
index 77d41f3..0263df6 100644 (file)
--- a/xboard.h
+++ b/xboard.h
@@ -5,7 +5,7 @@
  * Massachusetts.
  *
  * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006,
- * 2007, 2008, 2009 Free Software Foundation, Inc.
+ * 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  *
  * The following terms apply to Digital Equipment Corporation's copyright
  * interest in XBoard:
@@ -100,7 +100,7 @@ typedef struct {
   { "Dinky",    29, 1, 15, 9,  11, 1, 0, 480 }, \
   { "Teeny",    25, 1, 12, 8,  11, 1, 1, 480 }, \
   { "Tiny",     21, 1, 12, 8,  11, 1, 1, 0 }, \
-  { NULL, 0, 0, 0, 0, 0, 0 } }
+  {   NULL,      0, 0,  0, 0,   0, 0, 0, 0 } }
 
 #define BORDER_X_OFFSET 3
 #define BORDER_Y_OFFSET 27
@@ -117,7 +117,38 @@ typedef struct {
 #define COLOR_BKGD              "white"
 
 typedef int (*FileProc) P((FILE *f, int n, char *title));
+
+int PopDown P((int n));
+int InpuBoxPopUp P((void));
 void CatchDeleteWindow(Widget w, String procname);
+void PlaySound P((char *name));
+void ParseIcsTextColors P((void));
+void InitDrawingSizes P((int i, int j));
+void SendToICS P((char *buf));
+void SendToProgram P((char *message, ChessProgramState *cps));
+FILE * XsraSelFile P((Widget w, char *prompt, char *ok, char *cancel, char *failed,
+               char *init_path, char *filter, char *mode, int (*show_entry)(), char **name_return));
+
+extern Widget shells[];
+extern Boolean shellUp[];
+extern Widget formWidget, shellWidget, boardWidget, menuBarWidget, gameListShell, historyShell;
+extern Display *xDisplay;
+extern Window xBoardWindow;
+extern int squareSize;
+extern Pixmap xMarkPixmap, wIconPixmap, bIconPixmap;
+extern char *layoutName;
+extern Arg layoutArgs[2], formArgs[2], messageArgs[4];
+extern Pixel timerForegroundPixel, timerBackgroundPixel;
+extern int searchTime;
+extern Atom wm_delete_window;
+extern int squareSize, lineGap, defaultLineGap, useImages, useImageSqs;
+extern int shuffleOpenings;
+extern int startedFromPositionFile;
+extern char *icsTextMenuString;
+extern char ICSInputTranslations[];
+extern char *selected_fen_position;
+extern GC coordGC;
+
 
 #define TOPLEVEL 1 /* preference item; 1 = make popup windows toplevel */