aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gamedb.h
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/gamedb.h')
-rw-r--r--FICS/gamedb.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/FICS/gamedb.h b/FICS/gamedb.h
index d123028..8dc84d3 100644
--- a/FICS/gamedb.h
+++ b/FICS/gamedb.h
@@ -27,9 +27,11 @@
#ifndef _GAMEDB_H
#define _GAMEDB_H
+#include <stdint.h>
#include <time.h>
#include "board.h"
+#include "command.h"
extern const char *bstr[7];
extern const char *rstr[2];
@@ -139,15 +141,30 @@ typedef struct _game {
move_t *examMoveList; // Extra movelist for examine
int examMoveListSize;
- unsigned int startTime; // The relative time the game started
- unsigned int lastMoveTime; // Last time a move was made
- unsigned int lastDecTime; // Last time a players clock was
+ uint64_t startTime; // The relative time the game started
+ uint64_t lastMoveTime; // Last time a move was made
+ uint64_t lastDecTime; // Last time a players clock was
// decremented
int result;
int winner;
} game;
+struct JGI_context {
+ int p;
+ char from_spot;
+ char WhiteName[MAX_LOGIN_NAME + 1];
+ int WhiteRating;
+ char BlackName[MAX_LOGIN_NAME + 1];
+ int BlackRating;
+ char type[100];
+ int t;
+ int i;
+ char eco[100];
+ char ending[100];
+ char result[100];
+};
+
extern game *garray;
extern int g_num;
@@ -171,8 +188,7 @@ extern int game_remove(int);
extern int game_save(int);
extern int game_zero(int);
extern int got_attr_value(int, char *, char *, FILE *, char *);
-extern int journal_get_info(int, char, char *, int *, char *, int *,
- char *, int *, int *, char *, char *, char *, char *);
+extern int journal_get_info(struct JGI_context *, const char *);
extern int pgames(int, int, char *);
extern int pjournal(int, int, char *);
extern void MakeFENpos(int, char *, size_t);