]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/AccessRule.h
2aa82a4e34ea218bc4cc58b580e920f54794c7da
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_ADAPTATION__ACCESS_RULE_H
10 #define SQUID_ADAPTATION__ACCESS_RULE_H
12 #include "acl/forward.h"
13 #include "adaptation/forward.h"
14 #include "SquidString.h"
23 // manages adaptation_access configuration by associating an acl with
24 // an adaptation service group
28 AccessRule(const String
&groupId
);
31 void parse(ConfigParser
&parser
);
34 // service group consisting of one or more services
35 ServiceGroupPointer
group();
47 typedef std::vector
<Adaptation::AccessRule
*> AccessRules
;
48 AccessRules
&AllRules();
49 AccessRule
*FindRule(const AccessRule::Id
&id
);
50 AccessRule
*FindRuleByGroupId(const String
&groupId
);
52 } // namespace Adaptation
54 #endif /* SQUID_ADAPTATION__ACCESS_RULE_H */