]> git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/icap/Elements.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / adaptation / icap / Elements.h
1 /*
2 * Copyright (C) 1996-2015 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 #ifndef SQUID_ICAPELEMENTS_H
10 #define SQUID_ICAPELEMENTS_H
11
12 #include "adaptation/Elements.h"
13
14 // ICAP-related things shared by many ICAP classes
15
16 namespace Adaptation
17 {
18 namespace Icap
19 {
20
21 //TODO: remove the ICAP namespace
22 namespace ICAP
23 {
24 using Adaptation::Method;
25 using Adaptation::methodNone;
26 using Adaptation::methodRespmod;
27 using Adaptation::methodReqmod;
28
29 using Adaptation::VectPoint;
30 using Adaptation::pointNone;
31 using Adaptation::pointPreCache;
32 using Adaptation::pointPostCache;
33
34 using Adaptation::crlf;
35 using Adaptation::methodStr;
36 using Adaptation::vectPointStr;
37 }
38
39 typedef const char *XactOutcome; ///< transaction result for logging
40 extern const XactOutcome xoUnknown; ///< initial value: outcome was not set
41 extern const XactOutcome xoGone; ///< initiator gone, will not continue
42 extern const XactOutcome xoRace; ///< ICAP server closed pconn when we started
43 extern const XactOutcome xoError; ///< all kinds of transaction errors
44 extern const XactOutcome xoOpt; ///< OPTION transaction
45 extern const XactOutcome xoEcho; ///< preserved virgin message (ICAP 204)
46 extern const XactOutcome xoPartEcho; ///< preserved virgin msg part (ICAP 206)
47 extern const XactOutcome xoModified; ///< replaced virgin msg with adapted
48 extern const XactOutcome xoSatisfied; ///< request satisfaction
49
50 } // namespace Icap
51 } // namespace Adaptation
52
53 #endif /* SQUID_ICAPCLIENT_H */
54