]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/ecap/Config.h
2 * DEBUG: section 93 eCAP Interface
5 #ifndef SQUID_ECAP_CONFIG_H
6 #define SQUID_ECAP_CONFIG_H
8 #include "adaptation/Config.h"
9 #include "adaptation/ServiceConfig.h"
18 /// eCAP service configuration
19 class ServiceConfig
: public Adaptation::ServiceConfig
22 // Adaptation::ServiceConfig API
23 virtual bool grokExtension(const char *name
, const char *value
);
26 typedef std::pair
<std::string
, std::string
> Extension
; // name=value in cfg
27 typedef std::list
<Extension
> Extensions
;
28 Extensions extensions
;
31 /// General eCAP configuration
32 class Config
: public Adaptation::Config
39 virtual bool finalize();
42 virtual Adaptation::ServiceConfig
*newServiceConfig() const;
45 Config(const Config
&); // not implemented
46 Config
&operator =(const Config
&); // not implemented
48 virtual Adaptation::ServicePointer
createService(const ServiceConfigPointer
&cfg
);
51 extern Config TheConfig
;
54 } // namespace Adaptation
56 #endif /* SQUID_ECAP_CONFIG_H */