diff options
| author | frosty <frosty@illegalfirearms.store> | 2026-01-21 21:41:17 -0500 |
|---|---|---|
| committer | frosty <frosty@illegalfirearms.store> | 2026-01-21 21:41:17 -0500 |
| commit | 12a71a892251146bfcd45002e4ce93ec9da15941 (patch) | |
| tree | 131b230188998c4e83b623f2b5695fcbb00b6d8e /src/Config.h | |
| parent | 50301a037c38d3197f85baf40d6b69122e33ee1b (diff) | |
added config
Diffstat (limited to 'src/Config.h')
| -rw-r--r-- | src/Config.h | 13 |
1 files changed, 11 insertions, 2 deletions
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 |
