]>
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
23 // Adaptation::ServiceConfig API
24 virtual bool grokExtension(const char *name
, const char *value
);
27 typedef std::pair
<std::string
, std::string
> Extension
; // name=value in cfg
28 typedef std::list
<Extension
> Extensions
;
29 Extensions extensions
;
33 /// General eCAP configuration
34 class Config
: public Adaptation::Config
41 virtual bool finalize();
44 virtual Adaptation::ServiceConfig
*newServiceConfig() const;
47 Config(const Config
&); // not implemented
48 Config
&operator =(const Config
&); // not implemented
50 virtual Adaptation::ServicePointer
createService(const ServiceConfigPointer
&cfg
);
53 extern Config TheConfig
;
56 } // namespace Adaptation
58 #endif /* SQUID_ECAP_CONFIG_H */