]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/AclNameList.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / AclNameList.h
CommitLineData
6be70545 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
6be70545 3 *
bbc27441
AJ
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.
6be70545
FC
7 */
8
bbc27441
AJ
9#ifndef SQUID_ACL_ACLNAMELIST_H_
10#define SQUID_ACL_ACLNAMELIST_H_
11
6f58d7d7 12#include "acl/forward.h"
2e00d185 13#include "mem/forward.h"
001d55dc 14
2e00d185 15/// list of name-based ACLs
1b2f0924
FC
16class AclNameList
17{
2e00d185
AJ
18 MEMPROXY_CLASS(AclNameList);
19
6be70545 20public:
2e00d185
AJ
21 AclNameList(const char *t) {
22 xstrncpy(name, t, ACL_NAME_SZ-1);
23 }
24 ~AclNameList() {
25 // recursion is okay, these lists are short
26 delete next;
27 }
28
6be70545 29 char name[ACL_NAME_SZ];
2e00d185 30 AclNameList *next = nullptr;
6be70545 31};
001d55dc 32// TODO: convert to a std::list<string>
6be70545
FC
33
34#endif /* SQUID_ACLNAMELIST_H_ */
f53969cc 35