aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/variable.h
blob: 92cc6a81c1c5c91d1022ef85f21ab8835653fdff (plain)
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
/* variable.h
 *
 */

/*
    fics - An internet chess server.
    Copyright (C) 1993  Richard V. Nash

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
*/

/* Revision history:
   name		email		yy/mm/dd	Change
   Richard Nash	                93/10/22	Created
   Markus Uhlin                 24/04/01	Revised
*/

#ifndef _VARIABLE_H
#define _VARIABLE_H

#include "common.h"

#define VAR_OK           0
#define VAR_NOSUCH       1
#define VAR_BADVAL       2
#define VAR_AMBIGUOUS    3

#define LANG_ENGLISH     0
#define LANG_SPANISH     1
#define LANG_FRENCH      2
#define LANG_DANISH      3
#define NUM_LANGS        4

typedef struct _var_list {
	char *name;
	int (*var_func)(int, char *, char *);
} var_list;

__FICS_BEGIN_DECLS
extern var_list variables[];

extern const char	*Language(unsigned int);
extern int		 var_set(int, char *, char *, int *);
__FICS_END_DECLS

#endif /* _VARIABLE_H */