diff options
Diffstat (limited to 'ezlive_config.h')
| -rw-r--r-- | ezlive_config.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ezlive_config.h b/ezlive_config.h new file mode 100644 index 0000000..58b3f7d --- /dev/null +++ b/ezlive_config.h @@ -0,0 +1,22 @@ +#ifndef EZLIVE_CONFIG_H_ +#define EZLIVE_CONFIG_H_ + +typedef struct { + const char *listening_addr; + int listening_port; + const char *bucket; + const char *endpoint; + const char *s3_path; + const char *access_key; + const char *secret_key; + const char *web_endpoint; + const char *region; +} EZLiveConfig; + +extern EZLiveConfig *ezlive_config; + +void EZLiveConfig_init(EZLiveConfig *self); +void EZLiveConfig_load(EZLiveConfig *self, const char *filename); +int EZLiveConfig_validate(EZLiveConfig *self); + +#endif
\ No newline at end of file |
