From cc74fb0be4ce4a5f55719dcf4b1045fe156ded1b Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Mon, 2 Sep 2013 13:41:16 +0200 Subject: Pass an interface to the OnSync hooks Remove Module::ProtoSendMetaData() --- include/protocol.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/protocol.h') 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 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: -- cgit v1.3.1-10-gc9f91