AclDenyInfoList.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_SRC_ACL_ACLDENYINFOLIST_H
10 #define SQUID_SRC_ACL_ACLDENYINFOLIST_H
11 
12 #include "acl/forward.h"
13 #include "error/forward.h"
14 #include "errorpage.h"
15 #include "mem/forward.h"
16 #include "sbuf/forward.h"
17 
20 {
22 
23 public:
24  AclDenyInfoList(const char *t, const SBuf &aCfgLocation) {
26  err_page_id = errorReservePageId(t, aCfgLocation);
27  }
30  while (next) {
31  auto *a = next;
32  next = a->next;
33  a->next = nullptr;
34  delete a;
35  }
36  }
38  char *err_page_name = nullptr;
40  AclDenyInfoList *next = nullptr;
41 };
42 
43 #endif /* SQUID_SRC_ACL_ACLDENYINFOLIST_H */
44 
err_type errorReservePageId(const char *page_name, const SBuf &cfgLocation)
allocates a new slot for the error page
Definition: errorpage.cc:654
std::list< SBuf > SBufList
Definition: forward.h:22
Definition: SBuf.h:93
#define xstrdup
@ ERR_NONE
Definition: forward.h:15
err_type
Definition: forward.h:14
AclDenyInfoList * next
MEMPROXY_CLASS(AclDenyInfoList)
#define xfree
err_type err_page_id
SBufList acl_list
ACL names in configured order.
AclDenyInfoList(const char *t, const SBuf &aCfgLocation)
deny_info representation. Currently a POD.

 

Introduction

Documentation

Support

Miscellaneous