summaryrefslogtreecommitdiff
path: root/src/config/config.h
diff options
context:
space:
mode:
authorSoikk2025-06-06 21:10:34 +0200
committerSoikk2025-06-06 21:10:34 +0200
commit422898bc6fb8c48812cb50389fa4f13ba9358881 (patch)
treeb006ef3a9bbb17587c845634a207b403e1e8ce0a /src/config/config.h
parent3687db3e3817a14e3d8e2be28a5ebec841707cdb (diff)
downloadsoikk-server-422898bc6fb8c48812cb50389fa4f13ba9358881.tar.xz
soikk-server-422898bc6fb8c48812cb50389fa4f13ba9358881.tar.zst
Added config
Diffstat (limited to 'src/config/config.h')
-rw-r--r--src/config/config.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/config/config.h b/src/config/config.h
new file mode 100644
index 0000000..4f04459
--- /dev/null
+++ b/src/config/config.h
@@ -0,0 +1,19 @@
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#include "str/str.h"
+#include "log/log.h"
+
+typedef struct config {
+ int port;
+ int secure : 1;
+ int ipv4 : 1;
+ int ipv6 : 1;
+ int workers;
+ str root;
+
+} config;
+
+config read_config(str cfg);
+
+#endif