| 266 | } |
| 267 | |
| 268 | int ConfFile::parse_bufferlist(ceph::bufferlist *bl, |
| 269 | std::ostream *warnings) |
| 270 | { |
| 271 | clear(); |
| 272 | ostringstream oss; |
| 273 | if (!warnings) { |
| 274 | warnings = &oss; |
| 275 | } |
| 276 | return parse_buffer({bl->c_str(), bl->length()}, warnings) ? 0 : -EINVAL; |
| 277 | } |
| 278 | |
| 279 | int ConfFile::read(std::string_view section_name, |
| 280 | std::string_view key, |