]> git.ipfire.org Git - thirdparty/squid.git/blame - src/icmp/IcmpConfig.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / icmp / IcmpConfig.h
CommitLineData
cc192b50 1/*
bde978a6 2 * Copyright (C) 1996-2015 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.
cc192b50 7 */
bbc27441
AJ
8
9/* DEBUG: section 03 Configuration Settings */
10
cc192b50 11#ifndef ICMPCONFIG_H
12#define ICMPCONFIG_H
13
cc192b50 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 */
7473a02a 21class IcmpConfig
26ac0430 22{
cc192b50 23
24public:
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 */
b826ffb5 29 IcmpConfig() : program(NULL), enable(0) {};
7473a02a 30 ~IcmpConfig() { if (program) delete program; program = NULL; };
cc192b50 31
26ac0430 32 /* variables */
cc192b50 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 */
f53969cc 43