From 820f229a9efe2678d1e85578aa086a1efdd73a30 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 23 Nov 2015 12:50:02 +0100 Subject: Add ServiceProvider::RegisterService(), call it from ModuleManager::AddService() --- include/base.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/base.h') diff --git a/include/base.h b/include/base.h index dcbb2e5c7..8aa6269d3 100644 --- a/include/base.h +++ b/include/base.h @@ -251,6 +251,10 @@ class CoreExport ServiceProvider : public classbase ServiceProvider(Module* Creator, const std::string& Name, ServiceType Type); virtual ~ServiceProvider(); + /** Register this service in the appropriate registrar + */ + virtual void RegisterService(); + /** If called, this ServiceProvider won't be registered automatically */ void DisableAutoRegister(); -- cgit v1.2.3 From 90ab8cf4258a25e8403465ed86296fc74405620d Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 23 Nov 2015 12:52:24 +0100 Subject: Add SERVICE_CUSTOM for services managed by a module --- include/base.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/base.h') diff --git a/include/base.h b/include/base.h index 8aa6269d3..c378afc1c 100644 --- a/include/base.h +++ b/include/base.h @@ -235,7 +235,9 @@ enum ServiceType { /** is a data processing provider (MD5, SQL) */ SERVICE_DATA, /** is an I/O hook provider (SSL) */ - SERVICE_IOHOOK + SERVICE_IOHOOK, + /** Service managed by a module */ + SERVICE_CUSTOM }; /** A structure defining something that a module can provide */ -- cgit v1.2.3