aboutsummaryrefslogtreecommitdiff
path: root/src/Config.h
diff options
context:
space:
mode:
authorfrosty <gabriel@bwaaa.monster>2026-03-17 12:07:07 -0400
committerfrosty <gabriel@bwaaa.monster>2026-03-17 12:07:07 -0400
commit8c6632502ff992e80051910451421c55894ed9d8 (patch)
treee4a03e8ae45e020627781ff21141626fb0ebedeb /src/Config.h
parent5a6ad269745fe8cc8bc874eac4fac2479903028e (diff)
downloadomnisearch-8c6632502ff992e80051910451421c55894ed9d8.tar.gz
fix: general readability improvements
Diffstat (limited to 'src/Config.h')
-rw-r--r--src/Config.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Config.h b/src/Config.h
index 3571018..24dafe6 100644
--- a/src/Config.h
+++ b/src/Config.h
@@ -1,6 +1,28 @@
#ifndef CONFIG_H
#define CONFIG_H
+#define DEFAULT_HOST "0.0.0.0"
+#define DEFAULT_PORT 5000
+#define DEFAULT_CACHE_DIR "/tmp/omnisearch_cache"
+#define DEFAULT_CACHE_TTL_SEARCH 3600
+#define DEFAULT_CACHE_TTL_INFOBOX 86400
+#define DEFAULT_MAX_PROXY_RETRIES 3
+
+#define BUFFER_SIZE_SMALL 256
+#define BUFFER_SIZE_MEDIUM 512
+#define BUFFER_SIZE_LARGE 1024
+#define BUFFER_SIZE_XLARGE 2048
+
+#define INITIAL_BUFFER_SIZE 16384
+
+#define WIKI_SUMMARY_MAX_CHARS 300
+
+#define MD5_HASH_LEN 32
+#define HEX_CHARS "0123456789abcdef"
+
+#define INFOBOX_FIELD_COUNT 4
+#define MAX_RESULTS_PER_ENGINE 10
+
typedef struct {
char host[256];
int port;