summaryrefslogtreecommitdiff
path: root/src/server.h
blob: bca2d5258e6a00bbeee0e2cc9c18735f2c14693b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _SERVER_H_
#define _SERVER_H_

#include "base.h"

typedef struct {
	char *key;
	char *value;
} two_strings;

typedef enum { CONFIG_UNSET, CONFIG_DOCUMENT_ROOT } config_var_t;

int config_read(server *srv, const char *fn);
int config_set_defaults(server *srv);
buffer *config_get_value_buffer(server *srv, connection *con, config_var_t field);

#endif