]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ip/QosConfig.h
Author: Francesco Chemolli <kinkie@squid-cache.org>
[thirdparty/squid.git] / src / ip / QosConfig.h
1 #ifndef SQUID_QOSCONFIG_H
2 #define SQUID_QOSCONFIG_H
3
4 #include "config.h"
5
6 #if USE_ZPH_QOS
7
8 class QosConfig
9 {
10 public:
11 int tos_local_hit;
12 int tos_sibling_hit;
13 int tos_parent_hit;
14 int preserve_miss_tos;
15 int preserve_miss_tos_mask;
16
17 public:
18 QosConfig();
19 ~QosConfig() {};
20
21 void parseConfigLine();
22 void dumpConfigLine(char *entry, const char *name) const;
23 };
24
25 /* legacy parser access wrappers */
26 #define parse_QosConfig(X) (X)->parseConfigLine()
27 #define free_QosConfig(X)
28 #define dump_QosConfig(e,n,X) do { \
29 char temp[256]; /* random number. change as needed. max config line length. */ \
30 (X).dumpConfigLine(temp,n); \
31 storeAppendPrintf(e, "%s", temp); \
32 } while(0);
33
34 #endif /* USE_ZPH_QOS */
35 #endif /* SQUID_QOSCONFIG_H */