#endif
class acl_access;
-class acl_deny_info_list;
+class AclDenyInfoList;
class acl_size_t;
class HeaderManglers;
class refresh_t;
acl_access* icap;
#endif
} accessList;
- acl_deny_info_list *denyInfoList;
+ AclDenyInfoList *denyInfoList;
struct {
size_t list_width;
--- /dev/null
+#ifndef SQUID_ACLDENYINFOLIST_H_
+#define SQUID_ACLDENYINFOLIST_H_
+/*
+ * DEBUG: section
+ * AUTHOR:
+ *
+ * SQUID Web Proxy Cache http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ * Squid is the result of efforts by numerous individuals from
+ * the Internet community; see the CONTRIBUTORS file for full
+ * details. Many organizations have provided support for Squid's
+ * development; see the SPONSORS file for full details. Squid is
+ * Copyrighted (C) 2001 by the Regents of the University of
+ * California; see the COPYRIGHT file for full details. Squid
+ * incorporates software developed and/or copyrighted by other
+ * sources; see the CREDITS file for full details.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+#include "err_type.h"
+#include "acl/AclNameList.h"
+
+class AclDenyInfoList {
+public:
+ err_type err_page_id;
+ char *err_page_name;
+ AclNameList *acl_list;
+ AclDenyInfoList *next;
+};
+
+
+#endif /* SQUID_ACLDENYINFOLIST_H_ */
#include "squid.h"
#include "acl/Acl.h"
#include "acl/AclNameList.h"
+#include "acl/AclDenyInfoList.h"
#include "acl/Checklist.h"
#include "acl/Strategised.h"
#include "acl/Gadgets.h"
/* does name lookup, returns page_id */
err_type
-aclGetDenyInfoPage(acl_deny_info_list ** head, const char *name, int redirect_allowed)
+aclGetDenyInfoPage(AclDenyInfoList ** head, const char *name, int redirect_allowed)
{
- acl_deny_info_list *A = NULL;
+ AclDenyInfoList *A = NULL;
debugs(28, 8, HERE << "got called for " << name);
*/
void
-aclParseDenyInfoLine(acl_deny_info_list ** head)
+aclParseDenyInfoLine(AclDenyInfoList ** head)
{
char *t = NULL;
- acl_deny_info_list *A = NULL;
- acl_deny_info_list *B = NULL;
- acl_deny_info_list **T = NULL;
+ AclDenyInfoList *A = NULL;
+ AclDenyInfoList *B = NULL;
+ AclDenyInfoList **T = NULL;
AclNameList *L = NULL;
AclNameList **Tail = NULL;
return;
}
- A = (acl_deny_info_list *)memAllocate(MEM_ACL_DENY_INFO_LIST);
+ A = (AclDenyInfoList *)memAllocate(MEM_ACL_DENY_INFO_LIST);
A->err_page_id = errorReservePageId(t);
A->err_page_name = xstrdup(t);
- A->next = (acl_deny_info_list *) NULL;
+ A->next = (AclDenyInfoList *) NULL;
/* next expect a list of ACL names */
Tail = &A->acl_list;
}
/* maex@space.net (06.09.1996)
- * destroy an acl_deny_info_list */
+ * destroy an AclDenyInfoList */
void
-aclDestroyDenyInfoList(acl_deny_info_list ** list)
+aclDestroyDenyInfoList(AclDenyInfoList ** list)
{
- acl_deny_info_list *a = NULL;
- acl_deny_info_list *a_next = NULL;
+ AclDenyInfoList *a = NULL;
+ AclDenyInfoList *a_next = NULL;
AclNameList *l = NULL;
AclNameList *l_next = NULL;
#include "err_type.h"
struct dlink_list;
-class StoreEntry;
-class ConfigParser;
class acl_access;
class ACL;
+class AclDenyInfoList;
class ACLList;
-struct acl_deny_info_list;
+class ConfigParser;
+class StoreEntry;
class wordlist;
/// \ingroup ACLAPI
/// \ingroup ACLAPI
extern int aclIsProxyAuth(const char *name);
/// \ingroup ACLAPI
-extern err_type aclGetDenyInfoPage(acl_deny_info_list ** head, const char *name, int redirect_allowed);
+extern err_type aclGetDenyInfoPage(AclDenyInfoList ** head, const char *name, int redirect_allowed);
/// \ingroup ACLAPI
-extern void aclParseDenyInfoLine(acl_deny_info_list **);
+extern void aclParseDenyInfoLine(AclDenyInfoList **);
/// \ingroup ACLAPI
-extern void aclDestroyDenyInfoList(acl_deny_info_list **);
+extern void aclDestroyDenyInfoList(AclDenyInfoList **);
/// \ingroup ACLAPI
extern wordlist *aclDumpGeneric(const ACL *);
/// \ingroup ACLAPI
UserData.h \
\
AclNameList.h \
+ AclDenyInfoList.h \
Gadgets.cc \
Gadgets.h
#include "squid.h"
#include "acl/Acl.h"
+#include "acl/AclDenyInfoList.h"
#include "acl/AclNameList.h"
#include "acl/Gadgets.h"
#include "acl/MethodData.h"
static void dump_HeaderWithAclList(StoreEntry * entry, const char *name, HeaderWithAclList *headers);
static void parse_HeaderWithAclList(HeaderWithAclList **header);
static void free_HeaderWithAclList(HeaderWithAclList **header);
-static void parse_denyinfo(acl_deny_info_list ** var);
-static void dump_denyinfo(StoreEntry * entry, const char *name, acl_deny_info_list * var);
-static void free_denyinfo(acl_deny_info_list ** var);
+static void parse_denyinfo(AclDenyInfoList ** var);
+static void dump_denyinfo(StoreEntry * entry, const char *name, AclDenyInfoList * var);
+static void free_denyinfo(AclDenyInfoList ** var);
#if USE_WCCPv2
static void parse_IpAddress_list(Ip::Address_list **);
}
static void
-dump_denyinfo(StoreEntry * entry, const char *name, acl_deny_info_list * var)
+dump_denyinfo(StoreEntry * entry, const char *name, AclDenyInfoList * var)
{
AclNameList *a;
}
static void
-parse_denyinfo(acl_deny_info_list ** var)
+parse_denyinfo(AclDenyInfoList ** var)
{
aclParseDenyInfoLine(var);
}
void
-free_denyinfo(acl_deny_info_list ** list)
+free_denyinfo(AclDenyInfoList ** list)
{
- acl_deny_info_list *a = NULL;
- acl_deny_info_list *a_next = NULL;
+ AclDenyInfoList *a = NULL;
+ AclDenyInfoList *a_next = NULL;
AclNameList *l = NULL;
AclNameList *l_next = NULL;
#include "defines.h"
/* for iostats */
+#include "acl/AclDenyInfoList.h"
#include "structs.h"
extern char *ConfigFile; /* NULL */
extern int n_disk_objects; /* 0 */
extern iostats IOStats;
-extern struct acl_deny_info_list *DenyInfoList; /* NULL */
+extern AclDenyInfoList *DenyInfoList; /* NULL */
extern struct timeval squid_start;
extern int starting_up; /* 1 */
*/
#include "squid.h"
+#include "acl/AclDenyInfoList.h"
#include "acl/AclNameList.h"
#include "ClientInfo.h"
#include "event.h"
memDataInit(MEM_16K_BUF, "16K Buffer", 16384, 10, false);
memDataInit(MEM_32K_BUF, "32K Buffer", 32768, 10, false);
memDataInit(MEM_64K_BUF, "64K Buffer", 65536, 10, false);
- memDataInit(MEM_ACL_DENY_INFO_LIST, "acl_deny_info_list",
- sizeof(acl_deny_info_list), 0);
+ memDataInit(MEM_ACL_DENY_INFO_LIST, "AclDenyInfoList",
+ sizeof(AclDenyInfoList), 0);
memDataInit(MEM_ACL_NAME_LIST, "acl_name_list", sizeof(AclNameList), 0);
#if USE_CACHE_DIGESTS
#define PEER_MULTICAST_SIBLINGS 1
-struct acl_deny_info_list {
- err_type err_page_id;
- char *err_page_name;
- AclNameList *acl_list;
- acl_deny_info_list *next;
-};
-
class ACLChecklist;
#if SQUID_SNMP