diff options
| author | 2013-09-02 13:41:16 +0200 | |
|---|---|---|
| committer | 2013-09-13 12:15:44 +0200 | |
| commit | cc74fb0be4ce4a5f55719dcf4b1045fe156ded1b (patch) | |
| tree | 23ecbd574b8be2c3f5591aad433d0ca8616ca06c /include/protocol.h | |
| parent | Split ProtocolInterface::SendMetaData() into multiple functions (diff) | |
| download | inspircd++-cc74fb0be4ce4a5f55719dcf4b1045fe156ded1b.tar.gz inspircd++-cc74fb0be4ce4a5f55719dcf4b1045fe156ded1b.tar.bz2 inspircd++-cc74fb0be4ce4a5f55719dcf4b1045fe156ded1b.zip | |
Pass an interface to the OnSync hooks
Remove Module::ProtoSendMetaData()
Diffstat (limited to 'include/protocol.h')
| -rw-r--r-- | include/protocol.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/protocol.h b/include/protocol.h index bffc4a5e9..b077a4f47 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -26,9 +26,21 @@ class User; typedef std::vector<std::string> parameterlist; +class ProtocolServer +{ + public: + /** Send metadata related to this server to the target server + * @param key The 'key' of the data + * @param data The string representation of the data + */ + virtual void SendMetaData(const std::string& key, const std::string& data) = 0; +}; + class CoreExport ProtocolInterface { public: + typedef ProtocolServer Server; + class ServerInfo { public: |
