src/terminal-chess.h

changeset 30
a285ee393860
parent 26
e0a76ee1bb2b
child 47
d726e4b46c33
     1.1 --- a/src/terminal-chess.h	Mon Apr 07 14:08:57 2014 +0200
     1.2 +++ b/src/terminal-chess.h	Mon Apr 07 17:39:46 2014 +0200
     1.3 @@ -31,6 +31,7 @@
     1.4  #include <stdio.h>
     1.5  #include <ncurses.h>
     1.6  #include "network.h"
     1.7 +#include "chess/rules.h"
     1.8  
     1.9  #ifndef TERMINAL_CHESS_H
    1.10  #define	TERMINAL_CHESS_H
    1.11 @@ -39,16 +40,8 @@
    1.12  extern "C" {
    1.13  #endif
    1.14  
    1.15 -#define TIME_MAX UINT16_MAX
    1.16 -    
    1.17  typedef struct {
    1.18 -    uint8_t servercolor;
    1.19 -    uint16_t time;
    1.20 -    uint16_t addtime;
    1.21 -} Gameinfo;
    1.22 -
    1.23 -typedef struct {
    1.24 -    Gameinfo gameinfo;
    1.25 +    GameInfo gameinfo;
    1.26      char* port;
    1.27      char* serverhost; /* NULL, if we are about to start a server */
    1.28      _Bool printhelp;
    1.29 @@ -57,7 +50,7 @@
    1.30  
    1.31  #define is_server(settings) !((settings)->serverhost)
    1.32  
    1.33 -void dump_gameinfo(Gameinfo *gameinfo);
    1.34 +void dump_gameinfo(GameInfo *gameinfo);
    1.35  
    1.36  int server_run(Settings* settings);
    1.37  int client_run(Settings* settings);

mercurial