aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gamedb.h
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/gamedb.h')
-rw-r--r--FICS/gamedb.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/FICS/gamedb.h b/FICS/gamedb.h
index d123028..2d0edc8 100644
--- a/FICS/gamedb.h
+++ b/FICS/gamedb.h
@@ -30,6 +30,7 @@
#include <time.h>
#include "board.h"
+#include "command.h"
extern const char *bstr[7];
extern const char *rstr[2];
@@ -148,6 +149,21 @@ typedef struct _game {
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 +187,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);