]> git.ipfire.org Git - thirdparty/squid.git/blame - src/adaptation/Elements.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / adaptation / Elements.h
CommitLineData
bbc27441 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
bbc27441
AJ
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
a68cf076
AR
9#ifndef SQUID_ADAPTATION__ELEMENTS_H
10#define SQUID_ADAPTATION__ELEMENTS_H
11
12// widely used adaptation primitives
13
14namespace Adaptation
15{
16
17typedef enum { methodNone, methodReqmod, methodRespmod, methodOptions } Method;
18typedef enum { pointNone, pointPreCache, pointPostCache } VectPoint;
2dba5b8e 19typedef enum { srvBlock, srvBypass, srvWait, srvForce} SrvBehaviour;
a68cf076
AR
20
21extern const char *crlf;
82afb125
FC
22const char *methodStr(Method); // TODO: make into a stream operator?
23const char *vectPointStr(VectPoint); // TODO: make into a stream op?
a68cf076
AR
24
25} // namespace Adaptation
26
27#endif /* SQUID_ADAPTATION_ELEMENTS_H */
f53969cc 28