]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
f70aedc4 | 2 | * Copyright (C) 1996-2021 The Squid Software Foundation and contributors |
bbc27441 AJ |
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 | ||
bbaf2685 AJ |
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, | |
bfe4e2fe | 36 | ORIGINAL_DST, |
e8dca475 | 37 | STANDBY_POOL, |
bbaf2685 AJ |
38 | HIER_MAX |
39 | } hier_code; | |
40 | ||
4b981814 | 41 | extern const char *hier_code_str[]; |
bbaf2685 | 42 | |
0c3b4a44 | 43 | inline hier_code operator++(hier_code &i) { return i = (hier_code)(1+(int)i); } |
bbaf2685 AJ |
44 | |
45 | #endif /* SQUID__HIER_CODE_H */ | |
f53969cc | 46 |