diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-11-23 12:46:59 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-11-23 12:46:59 +0100 |
commit | a39bd397cd0052dd8e23ba5c4c5dfc9b3a11a70c (patch) | |
tree | 4d54899c2f0e2e1d1690a6e468c4cc87f7bb9719 /include | |
parent | bbc6a0bbbe7475e5e1d0c4f2418c6fe6e0e952b7 (diff) |
Extract code that manipulates the ModuleManager::DataProviders map into methods
Diffstat (limited to 'include')
-rw-r--r-- | include/modules.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h index c938e6a9d..378aec1ee 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1215,6 +1215,17 @@ class CoreExport ModuleManager : public fakederef<ModuleManager> * @return A ModuleMap containing all loaded modules */ const ModuleMap& GetModules() const { return Modules; } + + /** Make a service referenceable by dynamic_references + * @param name Name that will be used by dynamic_references to find the object + * @param service Service to make referenceable by dynamic_references + */ + void AddReferent(const std::string& name, ServiceProvider* service); + + /** Make a service no longer referenceable by dynamic_references + * @param service Service to make no longer referenceable by dynamic_references + */ + void DelReferent(ServiceProvider* service); }; /** Do not mess with these functions unless you know the C preprocessor |