blob: 58b3f7dce7c7edc224e5b51d860ee803823e635e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|