]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/adaptation/ecap/Config.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / adaptation / ecap / Config.h
index b9171db34722c84d094bb1f8c4863de3cf8fa572..a56fda7a2d5ea391fe78c2258a2046fbead3ba9d 100644 (file)
@@ -1,8 +1,13 @@
 /*
- * $Id$
- * DEBUG: section 93    eCAP Interface
+ * Copyright (C) 1996-2021 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_CONFIG_H
 #define SQUID_ECAP_CONFIG_H
 
@@ -17,7 +22,8 @@ namespace Ecap
 {
 
 /// eCAP service configuration
-class ServiceConfig: public Adaptation::ServiceConfig {
+class ServiceConfig: public Adaptation::ServiceConfig
+{
 public:
     // Adaptation::ServiceConfig API
     virtual bool grokExtension(const char *name, const char *value);
@@ -28,7 +34,6 @@ public:
     Extensions extensions;
 };
 
-
 /// General eCAP configuration
 class Config: public Adaptation::Config
 {
@@ -37,7 +42,7 @@ public:
     Config();
     ~Config();
 
-    virtual void finalize();
+    virtual bool finalize();
 
 protected:
     virtual Adaptation::ServiceConfig *newServiceConfig() const;
@@ -46,7 +51,7 @@ private:
     Config(const Config &); // not implemented
     Config &operator =(const Config &); // not implemented
 
-    virtual Adaptation::ServicePointer createService(ServiceConfigPointer cfg);
+    virtual Adaptation::ServicePointer createService(const ServiceConfigPointer &cfg);
 };
 
 extern Config TheConfig;
@@ -55,3 +60,4 @@ extern Config TheConfig;
 } // namespace Adaptation
 
 #endif /* SQUID_ECAP_CONFIG_H */
+