4 // Various routines that deal with parsing the configuration file.
9 struct MarkPoolConfig {
14 std::string stream_id;
15 std::string src; // Can be empty.
17 int mark_pool; // -1 for none.
20 struct AcceptorConfig {
26 std::vector<MarkPoolConfig> mark_pools;
27 std::vector<StreamConfig> streams;
28 std::vector<AcceptorConfig> acceptors;
30 std::string stats_file; // Empty means no stats file.
34 // Parse and validate configuration. Returns false on error.
35 // <config> is taken to be empty (uninitialized) on entry.
36 bool parse_config(const std::string &filename, Config *config);
38 #endif // !defined(_CONFIG_H)