AclDenyInfoList.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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_ACLDENYINFOLIST_H_
10 #define SQUID_ACLDENYINFOLIST_H_
11 
12 #include "acl/forward.h"
13 #include "err_type.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_ACLDENYINFOLIST_H_ */
44 
Definition: SBuf.h:86
#define xstrdup
MEMPROXY_CLASS(AclDenyInfoList)
err_type errorReservePageId(const char *page_name, const SBuf &cfgLocation)
allocates a new slot for the error page
Definition: errorpage.cc:640
deny_info representation. Currently a POD.
std::list< SBuf > SBufList
Definition: forward.h:22
AclDenyInfoList(const char *t, const SBuf &aCfgLocation)
err_type err_page_id
int a
Definition: membanger.c:50
AclDenyInfoList * next
#define xfree
SBufList acl_list
ACL names in configured order.
err_type
Definition: err_type.h:12

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors