aboutsummaryrefslogtreecommitdiff
path: root/src/Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Config.h')
-rw-r--r--src/Config.h13
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