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.
16 int mark_pool; // -1 for none.
19 struct AcceptorConfig {
25 std::vector<MarkPoolConfig> mark_pools;
26 std::vector<StreamConfig> streams;
27 std::vector<AcceptorConfig> acceptors;
29 std::string stats_file; // Empty means no stats file.
33 // Parse and validate configuration. Returns false on error.
34 // <config> is taken to be empty (uninitialized) on entry.
35 bool parse_config(const std::string &filename, Config *config);
37 #endif // !defined(_CONFIG_H)