diff options
Diffstat (limited to 'include/base.h')
-rw-r--r-- | include/base.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/base.h b/include/base.h index c6d361576..86aa2769f 100644 --- a/include/base.h +++ b/include/base.h @@ -249,8 +249,11 @@ class CoreExport ServiceProvider : public classbase const std::string name; /** Type of service (must match object type) */ const ServiceType service; - ServiceProvider(Module* Creator, const std::string& Name, ServiceType Type) - : creator(Creator), name(Name), service(Type) {} + ServiceProvider(Module* Creator, const std::string& Name, ServiceType Type); virtual ~ServiceProvider(); + + /** If called, this ServiceProvider won't be registered automatically + */ + void DisableAutoRegister(); }; |