diff options
author | Shea Levy <shea@shealevy.com> | 2018-02-13 14:43:32 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2018-02-13 14:43:32 -0500 |
commit | de4934ab3b26aa851b7044e9884102cc054dc092 (patch) | |
tree | 94e333d35b7d48d93bfb70f132023d6b8d3d5752 /src/libutil/config.hh | |
parent | 3fe9767dd33499c2560d209dc13a01f5fcead1f0 (diff) |
Allow plugins to define new settings.
Diffstat (limited to 'src/libutil/config.hh')
-rw-r--r-- | src/libutil/config.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libutil/config.hh b/src/libutil/config.hh index 9a32af528..c6783e13c 100644 --- a/src/libutil/config.hh +++ b/src/libutil/config.hh @@ -48,25 +48,25 @@ private: Settings _settings; - StringMap initials; + StringMap extras; public: Config(const StringMap & initials) - : initials(initials) + : extras(initials) { } void set(const std::string & name, const std::string & value); void addSetting(AbstractSetting * setting); - void warnUnknownSettings(); + void handleUnknownSettings(bool fatal = false); StringMap getSettings(bool overridenOnly = false); const Settings & _getSettings() { return _settings; } - void applyConfigFile(const Path & path, bool fatal = false); + void applyConfigFile(const Path & path); void resetOverriden(); |