aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2025-11-29 05:02:41 +0100
committerarf20 <aruizfernandez05@gmail.com>2025-11-29 05:02:41 +0100
commit8871f7b50bc6fef814254c85b851e05d638e66be (patch)
tree433776dc7b670b0e20b8f26516d36767f3a67f36 /config.h
downloadarfnet2-search-8871f7b50bc6fef814254c85b851e05d638e66be.tar.gz
arfnet2-search-8871f7b50bc6fef814254c85b851e05d638e66be.zip
initial commit
Diffstat (limited to 'config.h')
-rw-r--r--config.h20
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 */
+