aboutsummaryrefslogtreecommitdiff
path: root/ezlive_config.h
blob: faeb27e28ec68f3e988bfc932cfa89a1bde7f7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef EZLIVE_CONFIG_H_
#define EZLIVE_CONFIG_H_

#include <stdbool.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);
bool EZLiveConfig_load(EZLiveConfig *self, const char *filename);
int EZLiveConfig_validate(EZLiveConfig *self);

#endif