]> git.ipfire.org Git - thirdparty/squid.git/blob - src/hier_code.h
Merged from trunk
[thirdparty/squid.git] / src / hier_code.h
1 #ifndef SQUID__HIER_CODE_H
2 #define SQUID__HIER_CODE_H
3
4 typedef enum {
5 HIER_NONE,
6 HIER_DIRECT,
7 SIBLING_HIT,
8 PARENT_HIT,
9 DEFAULT_PARENT,
10 SINGLE_PARENT,
11 FIRSTUP_PARENT,
12 FIRST_PARENT_MISS,
13 CLOSEST_PARENT_MISS,
14 CLOSEST_PARENT,
15 CLOSEST_DIRECT,
16 NO_DIRECT_FAIL,
17 SOURCE_FASTEST,
18 ROUNDROBIN_PARENT,
19 #if USE_CACHE_DIGESTS
20 CD_PARENT_HIT,
21 CD_SIBLING_HIT,
22 #endif
23 CARP,
24 ANY_OLD_PARENT,
25 USERHASH_PARENT,
26 SOURCEHASH_PARENT,
27 PINNED,
28 HIER_MAX
29 } hier_code;
30
31 extern const char *hier_code_str[];
32
33 inline const hier_code operator++(hier_code &i) { return (hier_code)(i+1); }
34
35 #endif /* SQUID__HIER_CODE_H */