]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/htcp.h
Checkpoint HTCP merge.
[thirdparty/squid.git] / src / htcp.h
index 09dff47119ab049236f2e1d4aeb7fe029a6099eb..2149aa5d67b3efa413596bc1ab26d957eb5c96cb 100644 (file)
 #include "HttpHeader.h"
 #include "IPAddress.h"
 
+typedef enum {
+    HTCP_CLR_PURGE,
+    HTCP_CLR_INVALIDATION,
+} htcp_clr_reason;
+
 /// \ingroup ServerProtocolHTCP
 class HtcpReplyData
 {
@@ -69,6 +74,9 @@ SQUIDCEXTERN void htcpInit(void);
 /// \ingroup ServerProtocolHTCP
 SQUIDCEXTERN void htcpQuery(StoreEntry * e, HttpRequest * req, peer * p);
 
+/// \ingroup ServerProtocolHTCP
+SQUIDCEXTERN void htcpClear(StoreEntry * e, const char *uri, HttpRequest * req, HttpRequestMethod * method, peer * p, htcp_clr_reason reason);
+
 /// \ingroup ServerProtocolHTCP
 SQUIDCEXTERN void htcpSocketShutdown(void);