diff options
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config.h b/config.h new file mode 100644 index 0000000..64d0a3d --- /dev/null +++ b/config.h @@ -0,0 +1,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 */ + |
