]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/adaptation/ecap/Host.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / adaptation / ecap / Host.h
index 846a707aaecfa11cb93c8c86b936247898c3d854..2088de77edf901becbe7d08a9c287b87bc946b02 100644 (file)
@@ -1,8 +1,13 @@
 /*
- * $Id$
- * DEBUG: section 93    eCAP Interface
+ * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
+/* DEBUG: section 93    eCAP Interface */
+
 #ifndef SQUID_ECAP_HOST_H
 #define SQUID_ECAP_HOST_H
 
@@ -17,18 +22,12 @@ namespace Ecap
 class Host : public libecap::host::Host
 {
 public:
-    // About
+    /* libecap::host::Host API */
     virtual std::string uri() const; // unique across all vendors
     virtual void describe(std::ostream &os) const; // free-format info
-
-    // Service management
-    virtual void noteService(const libecap::weak_ptr<libecap::adapter::Service> &s);
-
-    // Logging
+    virtual void noteVersionedService(const char *libEcapVersion, const libecap::weak_ptr<libecap::adapter::Service> &s);
     virtual std::ostream *openDebug(libecap::LogVerbosity lv);
     virtual void closeDebug(std::ostream *debug);
-
-    // Message creation
     typedef libecap::shared_ptr<libecap::Message> MessagePtr;
     virtual MessagePtr newRequest() const;
     virtual MessagePtr newResponse() const;
@@ -44,6 +43,8 @@ private:
 extern const libecap::Name protocolInternal;
 extern const libecap::Name protocolCacheObj;
 extern const libecap::Name protocolIcp;
+extern const libecap::Name protocolIcy;
+extern const libecap::Name protocolUnknown;
 #if USE_HTCP
 extern const libecap::Name protocolHtcp;
 #endif
@@ -53,3 +54,4 @@ extern const libecap::Name metaBypassable; ///< an ecap_service parameter
 } // namespace Adaptation
 
 #endif /* SQUID_ECAP_HOST_H */
+