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 #include "squid.h"
10 #include "cache_cf.h"
11 #include "debug/Stream.h"
12 #include "format/Config.h"
13 
15 
16 void
17 Format::FmtConfig::registerTokens(const SBuf &nsName, TokenTableEntry const *tokenArray)
18 {
19  debugs(46, 2, "register format tokens for '" << nsName << "'");
20  if (tokenArray)
21  tokens.emplace_back(TokenNamespace(nsName, tokenArray));
22  else
23  debugs(0, DBG_CRITICAL, "ERROR: Squid BUG: format tokens for '" << nsName << "' missing!");
24 }
25 
#define DBG_CRITICAL
Definition: Stream.h:37
Definition: SBuf.h:93
One entry in a table of format tokens.
FmtConfig TheConfig
Definition: Config.cc:14
std::list< TokenNamespace > tokens
list of token namespaces registered
Definition: Config.h:49
The set of custom formats defined in squid.conf.
Definition: Config.h:38
void registerTokens(const SBuf &nsName, TokenTableEntry const *tokenArray)
Definition: Config.cc:17
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Stream.h:192

 

Introduction

Documentation

Support

Miscellaneous