blob: 90dbf8c9bfeb2f77de7e6af8a65a4c4fe8cd38f7 (
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 *region;
const char *key;
} EZLiveConfig;
extern EZLiveConfig *ezlive_config;
void EZLiveConfig_init(EZLiveConfig *self);
void EZLiveConfig_load(EZLiveConfig *self, const char *filename);
int EZLiveConfig_validate(EZLiveConfig *self);
#endif
|