#pragma once

#include "webrtc_stream.h"

#include <string>

namespace app {

enum class ParseResult {
    Ok,
    Help,
    Error
};

void load_device_config(const std::string &path,
                        webrtcpush::StreamConfig &config);
ParseResult apply_command_line(int argc, char **argv,
                               webrtcpush::StreamConfig &config);
bool validate_config(const webrtcpush::StreamConfig &config);
void print_usage();

} // namespace app
