diff options
Diffstat (limited to 'include/extension.h')
-rw-r--r-- | include/extension.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/extension.h b/include/extension.h index 8f3dc97..f03c8fb 100644 --- a/include/extension.h +++ b/include/extension.h @@ -155,7 +155,11 @@ public: * * @param callback */ - void iniVariables(const std::function<void(Ini &ini)> &callback); + void iniVariables(const std::function<void(Ini &ini)> &callback) + { + // loop through the entries and apply the callback to each one + for (auto ini : _ini_entries) callback(*ini); + } /** * Retrieve the module pointer |