]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/ecap/Config.h
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 93 eCAP Interface */
11 #ifndef SQUID_SRC_ADAPTATION_ECAP_CONFIG_H
12 #define SQUID_SRC_ADAPTATION_ECAP_CONFIG_H
14 #include "adaptation/Config.h"
15 #include "adaptation/ServiceConfig.h"
24 /// eCAP service configuration
25 class ServiceConfig
: public Adaptation::ServiceConfig
28 // Adaptation::ServiceConfig API
29 bool grokExtension(const char *name
, const char *value
) override
;
32 typedef std::pair
<std::string
, std::string
> Extension
; // name=value in cfg
33 typedef std::list
<Extension
> Extensions
;
34 Extensions extensions
;
37 /// General eCAP configuration
38 class Config
: public Adaptation::Config
45 bool finalize() override
;
48 Adaptation::ServiceConfig
*newServiceConfig() const override
;
51 Config(const Config
&); // not implemented
52 Config
&operator =(const Config
&); // not implemented
54 Adaptation::ServicePointer
createService(const ServiceConfigPointer
&cfg
) override
;
57 extern Config TheConfig
;
60 } // namespace Adaptation
62 #endif /* SQUID_SRC_ADAPTATION_ECAP_CONFIG_H */