| ---
server.h (526B)
---
1 /* See LICENSE file for copyright and license details. */
2 #ifndef SERVER_H
3 #define SERVER_H
4
5 #include
6 #include
7
8 struct vhost {
9 char *chost;
10 char *regex;
11 char *dir;
12 char *prefix;
13 regex_t re;
14 };
15
16 struct map {
17 char *chost;
18 char *from;
19 char *to;
20 };
21
22 struct server {
23 char *host;
24 char *port;
25 char *docindex;
26 int listdirs;
27 struct vhost *vhost;
28 size_t vhost_len;
29 struct map *map;
30 size_t map_len;
31 };
32
33 void server_init_thread_pool(int, size_t, size_t, const struct server *);
34
35 #endif /* SERVER_H */ |