aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..531a31e
--- /dev/null
+++ b/config.h
@@ -0,0 +1,20 @@
+#ifndef EZLIVE_CONFIG_H_
+#define EZLIVE_CONFIG_H_
+
+typedef struct {
+ const char *listening_addr;
+ int port;
+ const char *bucket;
+ const char *endpoint;
+ const char *dir;
+ const char *access_key;
+ const char *secret_key;
+ const char *web_endpoint;
+} EZLiveConfig;
+
+extern EZLiveConfig *ezlive_config;
+
+void EZLiveConfig_init(EZLiveConfig *self);
+void EZLiveConfig_load(EZLiveConfig *self, const char *filename);
+
+#endif \ No newline at end of file