Config.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
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.
7  */
8 
9 /* DEBUG: section 93 eCAP Interface */
10 
11 #include "squid.h"
12 #include "adaptation/ecap/Config.h"
13 #include "adaptation/ecap/Host.h"
15 
17 
19 {
20 }
21 
23 {
24 }
25 
26 bool
28 {
30  return false;
33  return true;
34 }
35 
38 {
39  return new ServiceConfig();
40 }
41 
44 {
45  return new Adaptation::Ecap::ServiceRep(cfg);
46 }
47 
48 /* ServiceConfig */
49 
50 bool
51 Adaptation::Ecap::ServiceConfig::grokExtension(const char *name, const char *value)
52 {
53  extensions.push_back(std::make_pair(name, value));
54  return true;
55 }
56 
bool finalize() override
Definition: Config.cc:27
Adaptation::ServiceConfig * newServiceConfig() const override
creates service configuration object that will parse and keep cfg info
Definition: Config.cc:37
virtual bool finalize()
Definition: Config.cc:190
General eCAP configuration.
Definition: Config.h:38
Services & AllServices()
Definition: Service.cc:61
static void Register()
register adaptation host
Definition: Host.cc:181
eCAP service configuration
Definition: Config.h:25
Config TheConfig
Definition: Config.cc:16
void CheckUnusedAdapterServices(const Services &services)
check for loaded eCAP services without matching ecap_service in squid.conf
Definition: ServiceRep.cc:344
Adaptation::ServicePointer createService(const ServiceConfigPointer &cfg) override
Definition: Config.cc:43
bool grokExtension(const char *name, const char *value) override
handle name=value configuration option with name unknown to Squid
Definition: Config.cc:51
~Config() override
Definition: Config.cc:22

 

Introduction

Documentation

Support

Miscellaneous