AclNameList.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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_ACL_ACLNAMELIST_H_
10 #define SQUID_ACL_ACLNAMELIST_H_
11 
12 #include "acl/forward.h"
13 #include "mem/forward.h"
14 
17 {
19 
20 public:
21  AclNameList(const char *t) {
22  xstrncpy(name, t, ACL_NAME_SZ-1);
23  }
25  // recursion is okay, these lists are short
26  delete next;
27  }
28 
30  AclNameList *next = nullptr;
31 };
32 // TODO: convert to a std::list<string>
33 
34 #endif /* SQUID_ACLNAMELIST_H_ */
35 
list of name-based ACLs
Definition: AclNameList.h:16
AclNameList * next
Definition: AclNameList.h:30
#define ACL_NAME_SZ
Definition: forward.h:40
char * xstrncpy(char *dst, const char *src, size_t n)
Definition: xstring.cc:37
char name[ACL_NAME_SZ]
Definition: AclNameList.h:29
AclNameList(const char *t)
Definition: AclNameList.h:21
MEMPROXY_CLASS(AclNameList)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors