You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
366 B
22 lines
366 B
#pragma once
|
|
#include <nlohmann/json.hpp>
|
|
#include <map>
|
|
|
|
using std::string;
|
|
|
|
struct SendTo {
|
|
string url = "";
|
|
string bitrate = "";
|
|
};
|
|
|
|
struct Config {
|
|
nlohmann::json json_config;
|
|
string listen_at = "";
|
|
string bitrate = "";
|
|
int fail_max = 6;
|
|
std::map<string, SendTo> send_to;
|
|
|
|
Config(const string json_file);
|
|
|
|
void load(const string file_name);
|
|
};
|
|
|