| 60 | } |
| 61 | |
| 62 | FieldValue const * |
| 63 | Config::get(std::string const &name) const |
| 64 | { |
| 65 | for (auto p = this->fields.begin(); |
| 66 | p != this->fields.end(); |
| 67 | ++p) { |
| 68 | if (p->getName() == name) |
| 69 | return &*p; |
| 70 | } |
| 71 | |
| 72 | return nullptr; |
| 73 | } |
| 74 | |
| 75 | ConfigContext::ConfigContext(suscan_config_context_t *ctx) |
| 76 | { |