Gadgets.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2021 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_GADGETS_H
10 #define SQUID_ACL_GADGETS_H
11 
12 #include "acl/forward.h"
13 #include "error/forward.h"
14 
15 #include <sstream>
16 
17 class ConfigParser;
18 class dlink_list;
19 class StoreEntry;
20 class wordlist;
21 
24 void aclRegister(ACL *acl);
26 void aclDestroyAccessList(acl_access **list);
28 void aclDestroyAcls(ACL **);
30 void aclDestroyAclList(ACLList **);
33 void aclParseAccessLine(const char *directive, ConfigParser &parser, Acl::Tree **);
37 size_t aclParseAclList(ConfigParser &parser, Acl::Tree **, const char *label);
39 template <class Any>
40 inline size_t
41 aclParseAclList(ConfigParser &parser, Acl::Tree **tree, const Any any)
42 {
43  std::ostringstream buf;
44  buf << any;
45  return aclParseAclList(parser, tree, buf.str().c_str());
46 }
47 
49 int aclIsProxyAuth(const char *name);
51 err_type aclGetDenyInfoPage(AclDenyInfoList ** head, const char *name, int redirect_allowed);
59 void aclCacheMatchFlush(dlink_list * cache);
61 void dump_acl_access(StoreEntry * entry, const char *name, acl_access * head);
63 void dump_acl_list(StoreEntry * entry, ACLList * head);
64 
65 #endif /* SQUID_ACL_GADGETS_H */
66 
int aclIsProxyAuth(const char *name)
Definition: Gadgets.cc:73
void aclParseAccessLine(const char *directive, ConfigParser &parser, Acl::Tree **)
void aclRegister(ACL *acl)
Definition: Gadgets.cc:224
#define ACLList
Definition: forward.h:46
err_type
Definition: forward.h:14
void aclDestroyDenyInfoList(AclDenyInfoList **)
Definition: Gadgets.cc:292
wordlist * aclDumpGeneric(const ACL *)
err_type aclGetDenyInfoPage(AclDenyInfoList **head, const char *name, int redirect_allowed)
Definition: Gadgets.cc:42
void dump_acl_access(StoreEntry *entry, const char *name, acl_access *head)
Definition: cache_cf.cc:1521
Definition: Tree.h:21
void aclCacheMatchFlush(dlink_list *cache)
Definition: Acl.cc:357
Definition: Acl.h:40
void aclDestroyAccessList(acl_access **list)
Definition: Gadgets.cc:279
void dump_acl_list(StoreEntry *entry, ACLList *head)
Definition: cache_cf.cc:1513
squidaio_request_t * head
Definition: aiops.cc:127
#define acl_access
Definition: forward.h:45
void aclDestroyAclList(ACLList **)
Definition: Gadgets.cc:270
void aclParseDenyInfoLine(AclDenyInfoList **)
Definition: Gadgets.cc:103
size_t aclParseAclList(ConfigParser &parser, Acl::Tree **, const char *label)
Definition: Gadgets.cc:191
deny_info representation. Currently a POD.
void aclDestroyAcls(ACL **)
called to delete ALL Acls.
Definition: Gadgets.cc:252

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors