aboutsummaryrefslogtreecommitdiff
path: root/config.h
blob: 64d0a3dfc99b53797f86e0191613c1081d645c9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _CONFIG_H
#define _CONFIG_H

#define BUFF_SIZE           65535
#define INIT_VEC_CAPACITY   256
#define CONFIG_PATH         "search.cfg"

#define DEFAULT_PORT        8888
#define DEFAULT_TMPL_PATH   "index.htm.tmpl"

/* config */
extern unsigned short port;
extern char *tmpl_path;
extern char *root;


int config_load(const char *conf_path);

#endif /* _CONFIG_H */