File: setup.h

package info (click to toggle)
cgoban 1.9.14-18
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,448 kB
  • sloc: ansic: 36,037; sh: 707; makefile: 259
file content (81 lines) | stat: -rw-r--r-- 2,015 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
 * src/setup.h, part of Complete Goban (game program)
 * Copyright (C) 1995-1996 William Shubert.
 * See "configure.h.in" for more copyright information.
 */


#ifndef  _SETUP_H_

#ifndef  _CGOBAN_H_
#include "cgoban.h"
#endif

#ifdef  _SETUP_H_
   Levelization Error
#endif
#define  _SETUP_H_  1


/**********************************************************************
 * Constants
 **********************************************************************/

/*
 * If you change CONTROL_MAXSERVERS, you must also change the number of 
 *   entries in a lot of the "client.<whatever>" CLP entries found in
 *   "src/cgoban.c".
 */
#define  SETUP_MAXSERVERS  10


/**********************************************************************
 * Data types
 **********************************************************************/
typedef struct Setup_struct  {
  Cgoban  *cg;

  void  (*destroyCallback)(struct Setup_struct *setup, void *packet);
  void  (*newServerCallback)(struct Setup_struct *setup, void *packet);
  void  *packet;

  ButWin  *win;

  But  *bg, *title;

  AbutSwin  *swin;

  int  srvNum;
  But  *srvMenu;
  But  *srvBox, *srvTitle, *srvName, *srvNameLabel;
  But  *srvProto, *srvProtoLabel, *srvDirect, *srvDirectLabel;
  But  *igsLabel, *nngsLabel;
  But  *srvComp, *srvCompIn, *srvPort, *srvPortIn;
  But  *srvCmd, *srvCmdLabel;

  But  *miscBox, *miscTitle;
  But  *coordLabel, *coord;
  But  *hiLabel, *hi;
  But  *numKibsLabel, *numKibs;
  But  *noTypoLabel, *noTypo;
  But *warnLabel, *warnLimit;

  But  *help, *ok;

  MAGIC_STRUCT
} Setup;


/**********************************************************************
 * Functions
 **********************************************************************/
extern Setup  *setup_create(Cgoban *cg,
			    void (*destroyCallback)(Setup *setup,
						    void *packet),
			    void  (*newServerCallback)(Setup *setup,
						       void *packet),
			    void *packet);
extern void  setup_destroy(Setup *setup, bool propagate);


#endif  /* _SETUP_H_ */