summaryrefslogtreecommitdiff
path: root/include/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/base.h')
-rw-r--r--include/base.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/base.h b/include/base.h
index dcbb2e5c7..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 */
@@ -251,6 +253,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();