]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/adaptation/Elements.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / adaptation / Elements.h
index 1dbd089d8d46c7529ca4b6c5ff00fce3b4533a78..57a5e1f00c680f08ec037ee1a6efe24f87d2f38d 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
 #ifndef SQUID_ADAPTATION__ELEMENTS_H
 #define SQUID_ADAPTATION__ELEMENTS_H
 
@@ -8,11 +16,13 @@ namespace Adaptation
 
 typedef enum { methodNone, methodReqmod, methodRespmod, methodOptions } Method;
 typedef enum { pointNone, pointPreCache, pointPostCache } VectPoint;
+typedef enum { srvBlock, srvBypass, srvWait, srvForce} SrvBehaviour;
 
 extern const char *crlf;
-extern const char *methodStr(Method); // TODO: make into a stream operator?
-extern const char *vectPointStr(VectPoint); // TODO: make into a stream op?
+const char *methodStr(Method); // TODO: make into a stream operator?
+const char *vectPointStr(VectPoint); // TODO: make into a stream op?
 
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION_ELEMENTS_H */
+