]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/protocol.h
Pass an interface to the OnSync hooks
[user/henk/code/inspircd.git] / include / protocol.h
index bffc4a5e91edc24c073bb0924f7ca977e0dbaa52..b077a4f4766190f04c74d890eb891fe650b924c2 100644 (file)
@@ -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: