1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Allow plugins to define new settings.

This commit is contained in:
Shea Levy 2018-02-13 14:43:32 -05:00
parent 3fe9767dd3
commit de4934ab3b
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27
8 changed files with 65 additions and 32 deletions

View file

@ -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();