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