diff options
author | Shea Levy <shea@shealevy.com> | 2018-02-13T19·43-0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2018-02-13T19·43-0500 |
commit | de4934ab3b26aa851b7044e9884102cc054dc092 (patch) | |
tree | 94e333d35b7d48d93bfb70f132023d6b8d3d5752 /src/libstore/globals.hh | |
parent | 3fe9767dd33499c2560d209dc13a01f5fcead1f0 (diff) |
Allow plugins to define new settings.
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r-- | src/libstore/globals.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index 508084d08acb..1d019aab9d23 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -383,5 +383,12 @@ void initPlugins(); extern const string nixVersion; +struct RegisterSetting +{ + typedef std::vector<AbstractSetting *> SettingRegistrations; + static SettingRegistrations * settingRegistrations; + RegisterSetting(AbstractSetting * s); +}; + } |