aboutsummaryrefslogtreecommitdiff
path: root/ezlive_config.h
blob: a8ba0b793e7c1ba24f5a198ae4c47849024f8667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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;
} EZLiveConfig;

extern EZLiveConfig *ezlive_config;

void EZLiveConfig_init(EZLiveConfig *self);
void EZLiveConfig_load(EZLiveConfig *self, const char *filename);
int EZLiveConfig_validate(EZLiveConfig *self);

#endif