]>
Commit | Line | Data |
---|---|---|
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__HIER_CODE_H | |
10 | #define SQUID__HIER_CODE_H | |
11 | ||
12 | typedef enum { | |
13 | HIER_NONE, | |
14 | HIER_DIRECT, | |
15 | SIBLING_HIT, | |
16 | PARENT_HIT, | |
17 | DEFAULT_PARENT, | |
18 | SINGLE_PARENT, | |
19 | FIRSTUP_PARENT, | |
20 | FIRST_PARENT_MISS, | |
21 | CLOSEST_PARENT_MISS, | |
22 | CLOSEST_PARENT, | |
23 | CLOSEST_DIRECT, | |
24 | NO_DIRECT_FAIL, | |
25 | SOURCE_FASTEST, | |
26 | ROUNDROBIN_PARENT, | |
27 | #if USE_CACHE_DIGESTS | |
28 | CD_PARENT_HIT, | |
29 | CD_SIBLING_HIT, | |
30 | #endif | |
31 | CARP, | |
32 | ANY_OLD_PARENT, | |
33 | USERHASH_PARENT, | |
34 | SOURCEHASH_PARENT, | |
35 | PINNED, | |
36 | ORIGINAL_DST, | |
37 | STANDBY_POOL, | |
38 | HIER_MAX | |
39 | } hier_code; | |
40 | ||
41 | extern const char *hier_code_str[]; | |
42 | ||
43 | inline hier_code operator++(hier_code &i) { return i = (hier_code)(1+(int)i); } | |
44 | ||
45 | #endif /* SQUID__HIER_CODE_H */ | |
46 |