AdaptationServiceData.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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#include "squid.h"
11#include "acl/Checklist.h"
12#include "adaptation/Config.h"
15#include "adaptation/Service.h"
17#include "cache_cf.h"
18#include "ConfigParser.h"
19#include "debug/Stream.h"
20
21void
23{
25 while (char *t = ConfigParser::strtokFile()) {
26 if (
27#if USE_ECAP
28 Adaptation::Ecap::TheConfig.findServiceConfig(t) == nullptr &&
29#endif
30#if ICAP_CLIENT
31 Adaptation::Icap::TheConfig.findServiceConfig(t) == nullptr &&
32#endif
33 Adaptation::FindGroup(t) == nullptr) {
34 debugs(28, DBG_CRITICAL, "FATAL: Adaptation service/group " << t << " in adaptation_service acl is not defined");
36 }
37 insert(t);
38 }
39}
40
void self_destruct(void)
Definition: cache_cf.cc:276
void insert(const char *)
Insert a string data value.
Definition: StringData.cc:18
static bool needHistory
HttpRequest adaptation history should recorded.
Definition: Config.h:60
static char * strtokFile()
Definition: ConfigParser.cc:64
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Stream.h:196
#define DBG_CRITICAL
Definition: Stream.h:40
Config TheConfig
Definition: Config.cc:16
Config TheConfig
Definition: Config.cc:19
ServiceGroupPointer FindGroup(const ServiceGroup::Id &id)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors