]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
typedef acl_list is deprecated in Squid3 by class ACLList
authoramosjeffries <>
Sat, 1 Sep 2007 11:56:37 +0000 (11:56 +0000)
committeramosjeffries <>
Sat, 1 Sep 2007 11:56:37 +0000 (11:56 +0000)
src/ACL.h
src/ACLChecklist.cc
src/ACLChecklist.cci
src/ACLChecklist.h
src/acl.cc
src/acl_noncore.cc
src/cache_cf.cc
src/structs.h

index f9bbcae4d9d8212d59bdfe30d185d532a7aff7e2..b50c1aad43ab6e36503479286e247c90ff2656c9 100644 (file)
--- a/src/ACL.h
+++ b/src/ACL.h
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ACL.h,v 1.18 2007/01/28 15:37:46 serassio Exp $
+ * $Id: ACL.h,v 1.19 2007/09/01 05:56:37 amosjeffries Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -48,9 +48,9 @@ class ConfigParser;
 /* acl.c */
 SQUIDCEXTERN void aclDestroyAccessList(acl_access **list);
 SQUIDCEXTERN void aclDestroyAcls(ACL **);
-SQUIDCEXTERN void aclDestroyAclList(acl_list **);
+SQUIDCEXTERN void aclDestroyAclList(ACLList **);
 SQUIDCEXTERN void aclParseAccessLine(ConfigParser &parser, acl_access **);
-SQUIDCEXTERN void aclParseAclList(ConfigParser &parser, acl_list **);
+SQUIDCEXTERN void aclParseAclList(ConfigParser &parser, ACLList **);
 SQUIDCEXTERN int aclIsProxyAuth(const char *name);
 SQUIDCEXTERN err_type aclGetDenyInfoPage(acl_deny_info_list ** head, const char *name, int redirect_allowed);
 
@@ -131,7 +131,7 @@ public:
     void operator delete(void *);
     bool containsPURGE() const;
     allow_t allow;
-    acl_list *aclList;
+    ACLList *aclList;
     char *cfgline;
     acl_access *next;
 
@@ -155,8 +155,6 @@ public:
 
 MEMPROXY_CLASS_INLINE(ACLList)
 
-typedef ACLList acl_list;
-
 class acl_proxy_auth_match_cache
 {
 
index 54b2550a0a55bd117132a694bc84a209c64977ef..f5d018194962ba6d2fd00bf363b66c6423c8bccc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLChecklist.cc,v 1.41 2007/07/19 00:37:05 hno Exp $
+ * $Id: ACLChecklist.cc,v 1.42 2007/09/01 05:56:37 amosjeffries Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -275,16 +275,16 @@ ACLChecklist::checkCallback(allow_t answer)
 }
 
 void
-ACLChecklist::matchAclListSlow(const acl_list * list)
+ACLChecklist::matchAclListSlow(const ACLList * list)
 {
     matchAclList(list, false);
 }
 
 void
-ACLChecklist::matchAclList(const acl_list * head, bool const fast)
+ACLChecklist::matchAclList(const ACLList * head, bool const fast)
 {
     PROF_start(aclMatchAclList);
-    const acl_list *node = head;
+    const ACLList *node = head;
 
     finished_ = false;
 
index aa253b95db37fc79666c7eeef0fa350c8e0b18eb..898729b005d23c16822b42a2387bee575f72d308 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLChecklist.cci,v 1.5 2007/06/17 21:39:49 hno Exp $
+ * $Id: ACLChecklist.cci,v 1.6 2007/09/01 05:56:37 amosjeffries Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Henrik Nordstrom
@@ -33,7 +33,7 @@
  */
 
 bool
-ACLChecklist::matchAclListFast(const acl_list * list)
+ACLChecklist::matchAclListFast(const ACLList * list)
 {
     matchAclList(list, true);
     return finished();
index e86df0f82f25fa4a8b0876623891b728a5c277d5..1862bab7e830483e5ac84cbb9969bd9c15ffb964 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ACLChecklist.h,v 1.27 2007/07/19 00:37:05 hno Exp $
+ * $Id: ACLChecklist.h,v 1.28 2007/09/01 05:56:37 amosjeffries Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -96,7 +96,7 @@ class NullState : public AsyncState
     int fastCheck();
     void checkCallback(allow_t answer);
     void preCheck();
-    _SQUID_INLINE_ bool matchAclListFast(const acl_list * list);
+    _SQUID_INLINE_ bool matchAclListFast(const ACLList * list);
     ConnStateData::Pointer conn();
     void conn(ConnStateData::Pointer);
     int authenticated();
@@ -140,8 +140,8 @@ class NullState : public AsyncState
     void markSourceDomainChecked();
 
 private:
-    void matchAclList(const acl_list * list, bool const fast);
-    void matchAclListSlow(const acl_list * list);
+    void matchAclList(const ACLList * list, bool const fast);
+    void matchAclListSlow(const ACLList * list);
     CBDATA_CLASS(ACLChecklist);
     ConnStateData::Pointer conn_;      /* hack for ident and NTLM */
     bool async_;
index 6118346ab5758c8165bca4ce513e384111ca490b..4b60fe54c30c127e105b2f04f5873d6b76c3b08c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: acl.cc,v 1.322 2007/04/28 22:26:37 hno Exp $
+ * $Id: acl.cc,v 1.323 2007/09/01 05:56:37 amosjeffries Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -324,7 +324,7 @@ bool
 acl_access::containsPURGE() const
 {
     acl_access const *a = this;
-    acl_list *b;
+    ACLList *b;
 
     debugs(28, 6, "acl_access::containsPURGE: invoked for '" << cfgline << "'");
 
index 9ae96cabd194cdbca7f568d60588b65484d680a9..abd6fac91cfa6a3c0c5ad194aa36a5bbaea97e27 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: acl_noncore.cc,v 1.5 2007/04/28 22:26:37 hno Exp $
+ * $Id: acl_noncore.cc,v 1.6 2007/09/01 05:56:37 amosjeffries Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -201,9 +201,9 @@ aclParseAccessLine(ConfigParser &parser, acl_access ** head)
 }
 
 void
-aclParseAclList(ConfigParser &parser, acl_list ** head)
+aclParseAclList(ConfigParser &parser, ACLList ** head)
 {
-    acl_list **Tail = head;    /* sane name in the use below */
+    ACLList **Tail = head;     /* sane name in the use below */
     ACL *a = NULL;
     char *t;
 
@@ -211,7 +211,7 @@ aclParseAclList(ConfigParser &parser, acl_list ** head)
      * by '!' for negation */
 
     while ((t = strtok(NULL, w_space))) {
-        acl_list *L = new ACLList;
+        ACLList *L = new ACLList;
 
         if (*t == '!') {
             L->negated (true);
@@ -256,9 +256,9 @@ aclDestroyAcls(ACL ** head)
 }
 
 void
-aclDestroyAclList(acl_list ** head)
+aclDestroyAclList(ACLList ** head)
 {
-    acl_list *l;
+    ACLList *l;
     debugs(28, 8, "aclDestroyAclList: invoked");
 
     for (l = *head; l; l = *head) {
index 939d18061e67af95a267362d95014e222a95c44d..814a8fab1250d38a8eeedc11e78d79cbe7d3fa60 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.519 2007/08/17 03:35:31 hno Exp $
+ * $Id: cache_cf.cc,v 1.520 2007/09/01 05:56:37 amosjeffries Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -847,9 +847,9 @@ free_acl(ACL ** ae)
 }
 
 static void
-dump_acl_list(StoreEntry * entry, acl_list * head)
+dump_acl_list(StoreEntry * entry, ACLList * head)
 {
-    acl_list *l;
+    ACLList *l;
 
     for (l = head; l; l = l->next) {
         storeAppendPrintf(entry, " %s%s",
index 6ec0f64ed3bada8816148dc982beef1260159e82..58400f033bfacfcf2855ff43a46be5c7262e6ee5 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: structs.h,v 1.561 2007/08/13 17:20:51 hno Exp $
+ * $Id: structs.h,v 1.562 2007/09/01 05:56:37 amosjeffries Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -91,7 +91,7 @@ struct _snmp_request_t
 struct _acl_address
 {
     acl_address *next;
-    acl_list *aclList;
+    ACLList *aclList;
 
     struct IN_ADDR addr;
 };
@@ -99,14 +99,14 @@ struct _acl_address
 struct _acl_tos
 {
     acl_tos *next;
-    acl_list *aclList;
+    ACLList *aclList;
     int tos;
 };
 
 struct _acl_size_t
 {
     acl_size_t *next;
-    acl_list *aclList;
+    ACLList *aclList;
     int64_t size;
 };
 
@@ -1696,7 +1696,7 @@ struct _logformat
 struct _customlog
 {
     char *filename;
-    acl_list *aclList;
+    ACLList *aclList;
     logformat *logFormat;
     Logfile *logfile;
     customlog *next;