diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-02-19 13:58:34 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-02-19 13:58:34 +0100 |
commit | 75a1d96cfd931e6e598040f5961d6d33f417ba56 (patch) | |
tree | e995eeaf138895275a69a7050507ef9c94f098b4 /src/libutil/config.hh | |
parent | 7fe5910bf8a9d104354df14b6b2faa69a6718e70 (diff) | |
parent | de4934ab3b26aa851b7044e9884102cc054dc092 (diff) |
Merge branch 'register-settings' of https://github.com/shlevy/nix
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(); |