diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-12-02 13:30:24 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-12-02 13:30:24 +0100 |
commit | 860f5cbf1ea159d7d1c3fce2364747a822c50461 (patch) | |
tree | cc4f7e8bb3efc944b8ce101c5db46162b31f2834 /include/base.h | |
parent | 44b5a8fa89d8c2bda767c0d5fe77c4d31061ce2b (diff) | |
parent | 90ab8cf4258a25e8403465ed86296fc74405620d (diff) |
Merge branch 'master+serviceinit'
Diffstat (limited to 'include/base.h')
-rw-r--r-- | include/base.h | 8 |
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(); |