-std::string fetch_config_string(const std::vector<ConfigLine> &config, const std::string &keyword,
- ParameterType parameter_type, const std::string &default_value = "");
+struct Config {
+ bool daemonize;
+ int num_servers;
+ std::vector<StreamConfig> streams;
+ std::vector<UDPStreamConfig> udpstreams;
+ std::vector<AcceptorConfig> acceptors;
+ std::vector<LogConfig> log_destinations;
+
+ std::string stats_file; // Empty means no stats file.
+ int stats_interval;
+
+ std::string input_stats_file; // Empty means no input stats file.
+ int input_stats_interval;
+
+ std::string access_log_file; // Empty means no accses_log file.
+};