return -EINVAL;
std::vector <std::string> my_sections;
- get_my_sections(my_sections);
+ _get_my_sections(my_sections);
for (int i = 0; i < NUM_CONFIG_OPTIONS; i++) {
config_option *opt = &config_optionsp[i];
std::string val;
void md_config_t::get_my_sections(std::vector <std::string> §ions) const
{
Mutex::Locker l(lock);
+ _get_my_sections(sections);
+}
+
+void md_config_t::_get_my_sections(std::vector <std::string> §ions) const
+{
+ assert(lock.is_locked());
sections.push_back(name.to_str());
sections.push_back(name.get_type_name());
private:
void _show_config(std::ostream& out);
+ void _get_my_sections(std::vector <std::string> §ions) const;
+
int _get_val_from_conf_file(const std::vector <std::string> §ions,
const char *key, std::string &out, bool emeta) const;