]> git.ipfire.org Git - thirdparty/squid.git/blob - src/icmp/IcmpConfig.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / icmp / IcmpConfig.h
1 /*
2 * Copyright (C) 1996-2015 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 /* DEBUG: section 03 Configuration Settings */
10
11 #ifndef ICMPCONFIG_H
12 #define ICMPCONFIG_H
13
14 /**
15 * Squid pinger Configuration settings
16 *
17 \par
18 * This structure is included as a child field of the global Config
19 * such that if ICMP is built it can be accessed as Config.pinger.*
20 */
21 class IcmpConfig
22 {
23
24 public:
25
26 /** \todo These methods should really be defined in an ICMPConfig.cc file
27 * alongside any custom parsing routines needed for this component.
28 * First though, the whole global Config dependancy tree needs fixing */
29 IcmpConfig() : program(NULL), enable(0) {};
30 ~IcmpConfig() { if (program) delete program; program = NULL; };
31
32 /* variables */
33
34 /** pinger helper application path */
35 char *program;
36
37 /** Whether the pinger helper is enabled for use or not */
38 /** \todo make this much more memory efficient for a boolean */
39 int enable;
40 };
41
42 #endif /* ICMPCONFIG_H */
43