0 /* See LICENSE file for copyright and license details. */
1 #define WORD_SIZE 1024
2
3 struct conf {
4 int threads;
5 char clients[WORD_SIZE];
6 };
7 extern struct conf conf;
8
9 struct server {
10 char name[WORD_SIZE];
11 char certificate[WORD_SIZE];
12 char key[WORD_SIZE];
13 char relayto[WORD_SIZE];
14 char relayto_port[WORD_SIZE];
15 bool plain;
16 bool forward;
17 bool client;
18 bool exist;
19 };
20 extern struct server *servers;
21
22 int conf_load(const char *path);
23 void conf_unload();
24 struct server *conf_get(const char *name);
25
26 #define END_OF_ARRAY 0xFF
27