]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make tag ACL play nice under current source layout.
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 30 May 2009 11:30:07 +0000 (23:30 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 30 May 2009 11:30:07 +0000 (23:30 +1200)
Few bits I missed during the initial merge.

src/acl/Tag.cc
src/acl/Tag.h

index e63a7f0306174cf831ae5da993b6d247d48ecd9f..bc81eb70a490dc3d6d358d0b27ffa6d98851de5a 100644 (file)
  */
 
 #include "squid.h"
-#include "ACLTag.h"
-#include "ACLStringData.h"
-#include "ACLChecklist.h"
+#include "acl/Tag.h"
+#include "acl/StringData.h"
+#include "acl/Checklist.h"
 #include "HttpRequest.h"
 
-/* explicit template instantiation required for some systems */
-
-ACL::Prototype ACLTag::RegistryProtoype(&ACLTag::RegistryEntry_, "tag");
-
-ACLStrategised<const char *> ACLTag::RegistryEntry_(new ACLStringData, ACLTagStrategy::Instance(), "tag");
-
 int
-ACLTagStrategy::match (ACLData<MatchType> * &data, ACLChecklist *checklist)
+ACLTagStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist)
 {
     if (checklist->conn() != NULL)
-       return data->match (checklist->request->tag.buf());
+       return data->match (checklist->request->tag.termedBuf());
     return 0;
 }
 
index bce969aac4a7c70105d4abbce519674cfd8d3e11..5ff986a4fcc30b94cbd2aec523c6e2aa28e0143a 100644 (file)
@@ -1,6 +1,5 @@
-
 /*
- * $Id: ACLTag.h,v 1.1.2.1 2008/02/27 10:06:42 amosjeffries Exp $
+ * $Id$
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
  * Copyright (c) 2009, Henrik Nordstrom <henrik@henriknordstrom.net>
  */
 
-#ifndef SQUID_ACLMYPORTNAME_H
-#define SQUID_ACLMYPORTNAME_H
-#include "ACLStrategy.h"
-#include "ACLStrategised.h"
+#ifndef SQUID_ACLTAG_H
+#define SQUID_ACLTAG_H
+
+#include "acl/Strategy.h"
+#include "acl/Strategised.h"
 
 class ACLTagStrategy : public ACLStrategy<const char *>
 {
 
 public:
-    virtual int match (ACLData<MatchType> * &, ACLChecklist *);
+    virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *);
     static ACLTagStrategy *Instance();
     /* Not implemented to prevent copies of the instance. */
     /* Not private to prevent brain dead g+++ warnings about