From 8871f7b50bc6fef814254c85b851e05d638e66be Mon Sep 17 00:00:00 2001 From: arf20 Date: Sat, 29 Nov 2025 05:02:41 +0100 Subject: initial commit --- config.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 config.h (limited to 'config.h') 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 */ + -- cgit v1.2.3