]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/adaptation/icap/Elements.h
SourceFormat: enforcement
[thirdparty/squid.git] / src / adaptation / icap / Elements.h
index e84723a7b4173cedf0e9a039a2c1bb6284200c06..ab3b1c8f87e19457caabc92ed848269f6842fb9a 100644 (file)
 
 namespace Adaptation
 {
-namespace Icap {
+namespace Icap
+{
 
-namespace ICAP {
+//TODO: remove the ICAP namespace
+namespace ICAP
+{
 using Adaptation::Method;
 using Adaptation::methodNone;
 using Adaptation::methodRespmod;
@@ -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