Squid Web Cache master
Loading...
Searching...
No Matches
Config.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 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
16void
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
The set of custom formats defined in squid.conf.
Definition Config.h:39
std::list< TokenNamespace > tokens
list of token namespaces registered
Definition Config.h:49
void registerTokens(const SBuf &nsName, TokenTableEntry const *tokenArray)
Definition Config.cc:17
One entry in a table of format tokens.
Definition SBuf.h:94
#define debugs(SECTION, LEVEL, CONTENT)
Definition Stream.h:192
#define DBG_CRITICAL
Definition Stream.h:37
FmtConfig TheConfig
Definition Config.cc:14