]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/adaptation/icap/Elements.h
SourceFormat: enforcement
[thirdparty/squid.git] / src / adaptation / icap / Elements.h
index fcf7ee54d2679a8ab8c7c01af070f06f76cc5933..ab3b1c8f87e19457caabc92ed848269f6842fb9a 100644 (file)
 // ICAP-related things shared by many ICAP classes
 
 
-namespace Adaptation {
-namespace Icap {
+namespace Adaptation
+{
+namespace Icap
+{
 
+//TODO: remove the ICAP namespace
 namespace ICAP
 {
 using Adaptation::Method;
@@ -59,6 +62,13 @@ using Adaptation::methodStr;
 using Adaptation::vectPointStr;
 }
 
+typedef const char *XactOutcome; ///< transaction result for logging
+extern const XactOutcome xoUnknown; ///< initial value: outcome was not set
+extern const XactOutcome xoError; ///< all kinds of transaction errors
+extern const XactOutcome xoOpt; ///< OPTION transaction
+extern const XactOutcome xoEcho; ///< preserved virgin message (ICAP 204)
+extern const XactOutcome xoModified; ///< replaced virgin msg with adapted
+extern const XactOutcome xoSatisfied; ///< request satisfaction
 
 } // namespace Icap
 } // namespace Adaptation