File: client.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 (44 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download | duplicates (9)
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
/*
 * src/gmp/client.h, part of Complete Goban (game program)
 * Copyright (C) 1995 William Shubert.
 * See "configure.h.in" for more copyright information.
 */


#ifndef  _GMP_CLIENT_H_
#define  _GMP_CLIENT_H_  1

#ifndef  _GMP_ENGINE_H_
#include "engine.h"
#endif
#ifndef  _CLIENT_BOARD_H_
#include "../client/board.h"
#endif


/**********************************************************************
 * Data types
 **********************************************************************/

typedef struct GmpClient_struct  {
  Cgoban *cg;
  bool  inGame;
  int  size, pid, inFile, outFile;
  GmpEngine  ge;
  Str  progName;
  CliBoard  *cliBoard;

  MAGIC_STRUCT
} GmpClient;


/**********************************************************************
 * Functions
 **********************************************************************/
extern GmpClient  *gmpClient_create(Cgoban *cg, const char *progName,
				    CliServer server, const char *user,
				    const char *password);
extern void  gmpClient_destroy(GmpClient *gc);


#endif  /* _GMP_SETUP_H_ */