From 12a71a892251146bfcd45002e4ce93ec9da15941 Mon Sep 17 00:00:00 2001 From: frosty Date: Wed, 21 Jan 2026 21:41:17 -0500 Subject: added config --- src/Config.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/Config.h') diff --git a/src/Config.h b/src/Config.h index b5695b7..384ed94 100644 --- a/src/Config.h +++ b/src/Config.h @@ -1,2 +1,11 @@ -static int port = 5000; -static char host[] = "0.0.0.0"; \ No newline at end of file +#ifndef CONFIG_H +#define CONFIG_H + +typedef struct { + char host[256]; + int port; +} Config; + +int load_config(const char *filename, Config *config); + +#endif \ No newline at end of file -- cgit v1.2.3