gopher.cc \
helper.cc \
helper.h \
- HelperChildConfig.h \
- HelperChildConfig.cc \
hier_code.h \
HierarchyLogEntry.h \
$(HTCPSOURCE) \
ufsdump.cc \
dlink.h \
dlink.cc \
- HelperChildConfig.h \
+ helper/ChildConfig.h \
tests/stub_HelperChildConfig.cc \
HttpRequestMethod.cc \
RemovalPolicy.cc \
tests/stub_fatal.cc \
FileMap.h \
filemap.cc \
- HelperChildConfig.h \
- HelperChildConfig.cc \
HttpBody.cc \
HttpHeader.h \
HttpHeader.cc \
nodist_tests_testACLMaxUserIP_SOURCES= \
$(TESTSOURCES)
tests_testACLMaxUserIP_LDADD= \
+ helper/libhelper.la \
http/libsquid-http.la \
$(AUTH_ACL_LIBS) \
ident/libident.la \
gopher.cc \
hier_code.h \
helper.cc \
- HelperChildConfig.h \
- HelperChildConfig.cc \
$(HTCPSOURCE) \
HttpStateFlags.h \
http.cc \
gopher.h \
gopher.cc \
helper.cc \
- HelperChildConfig.h \
- HelperChildConfig.cc \
hier_code.h \
$(HTCPSOURCE) \
http.cc \
gopher.h \
gopher.cc \
helper.cc \
- HelperChildConfig.h \
- HelperChildConfig.cc \
hier_code.h \
$(HTCPSOURCE) \
http.cc \
gopher.h \
gopher.cc \
helper.cc \
- HelperChildConfig.h \
- HelperChildConfig.cc \
hier_code.h \
$(HTCPSOURCE) \
http.cc \
gopher.h \
gopher.cc \
helper.cc \
- HelperChildConfig.h \
- HelperChildConfig.cc \
hier_code.h \
$(HTCPSOURCE) \
http.cc \
gopher.h \
gopher.cc \
helper.cc \
- HelperChildConfig.h \
- HelperChildConfig.cc \
hier_code.h \
$(HTCPSOURCE) \
http.cc \
#include "base/RefCount.h"
#include "ClientDelayConfig.h"
#include "DelayConfig.h"
-#include "HelperChildConfig.h"
+#include "helper/ChildConfig.h"
#include "HttpHeaderTools.h"
#include "icmp/IcmpConfig.h"
#include "ip/Address.h"
} Program;
- HelperChildConfig redirectChildren;
- HelperChildConfig storeIdChildren;
+ Helper::ChildConfig redirectChildren;
+ Helper::ChildConfig storeIdChildren;
time_t authenticateGCInterval;
time_t authenticateTTL;
time_t authenticateIpTTL;
#include "AccessLogEntry.h"
#include "auth/UserRequest.h"
-#include "HelperChildConfig.h"
+#include "helper/ChildConfig.h"
class StoreEntry;
class HttpReply;
virtual const char * type() const = 0;
public:
- HelperChildConfig authenticateChildren;
+ Helper::ChildConfig authenticateChildren;
wordlist *authenticateProgram; ///< Helper program to run, includes all parameters
String keyExtrasLine; ///< The format of the request to the auth helper
Format::Format *keyExtras; ///< The compiled request format
wordlist *cmdline;
- HelperChildConfig children;
+ Helper::ChildConfig children;
helper *theHelper;
#include "cbdata.h"
#include "comm/forward.h"
#include "dlink.h"
+#include "helper/ChildConfig.h"
#include "helper/forward.h"
-#include "HelperChildConfig.h"
#include "ip/Address.h"
class helper
dlink_list servers;
dlink_list queue;
const char *id_name;
- HelperChildConfig childs; ///< Configuration settings for number running.
+ Helper::ChildConfig childs; ///< Configuration settings for number running.
int ipc_type;
Ip::Address addr;
time_t last_queue_warn;
#include "ConfigParser.h"
#include "Debug.h"
#include "globals.h"
-#include "HelperChildConfig.h"
+#include "helper/ChildConfig.h"
#include "Parsing.h"
#include <cstring>
-HelperChildConfig::HelperChildConfig(const unsigned int m):
+Helper::ChildConfig::ChildConfig(const unsigned int m):
n_max(m),
n_startup(0),
n_idle(1),
n_active(0)
{}
-HelperChildConfig &
-HelperChildConfig::updateLimits(const HelperChildConfig &rhs)
+Helper::ChildConfig &
+Helper::ChildConfig::updateLimits(const Helper::ChildConfig &rhs)
{
// Copy the limits only.
// Preserve the local state values (n_running and n_active)
}
int
-HelperChildConfig::needNew() const
+Helper::ChildConfig::needNew() const
{
/* during the startup and reconfigure use our special amount... */
if (starting_up || reconfiguring) return n_startup;
}
void
-HelperChildConfig::parseConfig()
+Helper::ChildConfig::parseConfig()
{
char const *token = ConfigParser::NextToken();
* Please see the COPYING and CONTRIBUTORS files for details.
*/
-#ifndef _SQUID_SRC_HELPERCHILDCONFIG_H
-#define _SQUID_SRC_HELPERCHILDCONFIG_H
+#ifndef _SQUID_SRC_HELPER_CHILDCONFIG_H
+#define _SQUID_SRC_HELPER_CHILDCONFIG_H
+
+namespace Helper
+{
/**
* Contains statistics of a particular type of child helper.
* Some derived from a helper children configuration option,
* some from runtime stats on the currently active children.
*/
-class HelperChildConfig
+class ChildConfig
{
public:
- explicit HelperChildConfig(const unsigned int m = 0);
+ explicit ChildConfig(const unsigned int m = 0);
/**
* When new helpers are needed call this to find out how many more
* This is for parsing new child settings into an object incrementally then updating
* the running set without loosing any of the active state or causing races.
*/
- HelperChildConfig &updateLimits(const HelperChildConfig &rhs);
+ ChildConfig &updateLimits(const ChildConfig &rhs);
/* values from squid.conf */
public:
unsigned int n_active;
};
+} // namespace Helper
+
/* Legacy parser interface */
#define parse_HelperChildConfig(c) (c)->parseConfig()
#define dump_HelperChildConfig(e,n,c) storeAppendPrintf((e), "\n%s %d startup=%d idle=%d concurrency=%d\n", (n), (c).n_max, (c).n_startup, (c).n_idle, (c).concurrency)
#define free_HelperChildConfig(dummy) // NO.
-#endif /* _SQUID_SRC_HELPERCHILDCONFIG_H */
+#endif /* _SQUID_SRC_HELPER_CHILDCONFIG_H */
noinst_LTLIBRARIES = libhelper.la
libhelper_la_SOURCES = \
+ ChildConfig.cc \
+ ChildConfig.h \
forward.h \
Reply.cc \
Reply.h \
#ifndef SQUID_SSL_CONFIG_H
#define SQUID_SSL_CONFIG_H
-#include "HelperChildConfig.h"
+#include "helper/ChildConfig.h"
namespace Ssl
{
#if USE_SSL_CRTD
char *ssl_crtd; ///< Name of external ssl_crtd application.
/// The number of processes spawn for ssl_crtd.
- HelperChildConfig ssl_crtdChildren;
+ ::Helper::ChildConfig ssl_crtdChildren;
#endif
char *ssl_crt_validator;
- HelperChildConfig ssl_crt_validator_Children;
+ ::Helper::ChildConfig ssl_crt_validator_Children;
Config();
~Config();
private:
#include "squid.h"
#include "globals.h"
-#include "HelperChildConfig.h"
+#include "helper/ChildConfig.h"
#define STUB_API "stub_HelperChildconfig.cc"
#include "tests/STUB.h"
#include <cstring>
-HelperChildConfig::HelperChildConfig(const unsigned int m):
+Helper::ChildConfig::ChildConfig(const unsigned int m):
n_max(m),
n_startup(0),
n_idle(1),
{}
int
-HelperChildConfig::needNew() const
+Helper::ChildConfig::needNew() const
{
/* during the startup and reconfigure use our special amount... */
if (starting_up || reconfiguring) return n_startup;
return (n_max - n_active);
}
-void HelperChildConfig::parseConfig() STUB
+void Helper::ChildConfig::parseConfig() STUB