From 422898bc6fb8c48812cb50389fa4f13ba9358881 Mon Sep 17 00:00:00 2001 From: Soikk Date: Fri, 6 Jun 2025 21:10:34 +0200 Subject: Added config --- src/config/config.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/config/config.h (limited to 'src/config/config.h') 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 -- cgit v1.2.3