]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/ecap/Config.h
3 * DEBUG: section 93 eCAP Interface
6 #ifndef SQUID_ECAP_CONFIG_H
7 #define SQUID_ECAP_CONFIG_H
9 #include "adaptation/Config.h"
10 #include "adaptation/ServiceConfig.h"
19 /// eCAP service configuration
20 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
;
32 /// General eCAP configuration
33 class Config
: public Adaptation::Config
40 virtual void finalize();
43 virtual Adaptation::ServiceConfig
*newServiceConfig() const;
46 Config(const Config
&); // not implemented
47 Config
&operator =(const Config
&); // not implemented
49 virtual Adaptation::ServicePointer
createService(const ServiceConfigPointer
&cfg
);
52 extern Config TheConfig
;
55 } // namespace Adaptation
57 #endif /* SQUID_ECAP_CONFIG_H */