summaryrefslogtreecommitdiff
path: root/include/protocol.h
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-09-02 13:41:16 +0200
committerattilamolnar <attilamolnar@hush.com>2013-09-13 12:15:44 +0200
commitcc74fb0be4ce4a5f55719dcf4b1045fe156ded1b (patch)
tree23ecbd574b8be2c3f5591aad433d0ca8616ca06c /include/protocol.h
parent02220d48eec4dd3507b582031de639c9d7835ec8 (diff)
Pass an interface to the OnSync hooks
Remove Module::ProtoSendMetaData()
Diffstat (limited to 'include/protocol.h')
-rw-r--r--include/protocol.h12
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: