-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h
66 lines (60 loc) · 1.45 KB
/
config.h
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
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef WM_CONFIGC
// exported functions
extern int read_config(const char *);
#else
#include "common.h"
#include "init.h"
#include "irc.h"
#include "misc.h"
#define UNKNOWN 0
#define IRCSERVER 1
#define IRCPORT 2
#define IRCNICK 3
#define IRCOPERNAME 4
#define IRCOPERPASS 5
#define IRCCHAN 6
#define IRCCHANKEY 7
#define LOGPATH 8
#define LOGCHANS 9
#define LOGSEV 10
#define DBHOST 11
#define DBPORT 12
#define DBUSER 13
#define DBPASS 14
#define DBNAME 15
#define ADMINPASS 16
#define CBPKEY 17
#define CBPPASSPHRASE 18
#define CBPSECRET 19
#define CPTOKEN 20
#define CBPPROFILE 21
static struct
{
char *key;
unsigned short int value;
} cd[] = {
{ "UNKNOWN", UNKNOWN },
{ "IRCSERVER", IRCSERVER },
{ "IRCPORT", IRCPORT },
{ "IRCNICK", IRCNICK },
{ "IRCOPERNAME", IRCOPERNAME },
{ "IRCOPERPASS", IRCOPERPASS },
{ "IRCCHAN", IRCCHAN },
{ "IRCCHANKEY", IRCCHANKEY },
{ "LOGPATH", LOGPATH },
{ "LOGCHANS", LOGCHANS },
{ "LOGSEV", LOGSEV },
{ "DBHOST", DBHOST },
{ "DBPORT", DBPORT },
{ "DBUSER", DBUSER },
{ "DBPASS", DBPASS },
{ "DBNAME", DBNAME },
{ "ADMINPASS", ADMINPASS },
{ "CBPKEY", CBPKEY },
{ "CBPPASSPHRASE", CBPPASSPHRASE },
{ "CBPSECRET", CBPSECRET },
{ "CPTOKEN", CPTOKEN },
{ "CBPPROFILE", CBPPROFILE },
{ NULL, 0 },
};
#endif