/// \ingroup ACLAPI
SQUIDCEXTERN void asnInit(void);
-/// \ingroup ACLAPI
-extern void asnRegisterWithCacheManager();
-
/// \ingroup ACLAPI
SQUIDCEXTERN void asnFreeMemory(void);
asnCacheStart(i->element);
}
+static void
+asnRegisterWithCacheManager(void)
+{
+ CacheManager::GetInstance()->registerAction("asndb", "AS Number Database", asnStats, 0, 1);
+}
+
/* initialize the radix tree structure */
SQUIDCEXTERN int squid_max_keylen; /* yuck.. this is in lib/radix.c */
asnRegisterWithCacheManager();
}
-void
-asnRegisterWithCacheManager()
-{
- CacheManager::GetInstance()->registerAction("asndb", "AS Number Database", asnStats, 0, 1);
-}
-
void
asnFreeMemory(void)
{
return rv;
}
+static void
+authenticateRegisterWithCacheManager(authConfig * config)
+{
+ for (authConfig::iterator i = config->begin(); i != config->end(); ++i) {
+ AuthConfig *scheme = *i;
+ scheme->registerWithCacheManager();
+ }
+}
+
void
authenticateInit(authConfig * config)
{
authenticateRegisterWithCacheManager(&Config.authConfiguration);
}
-void
-authenticateRegisterWithCacheManager(authConfig * config)
-{
- for (authConfig::iterator i = config->begin(); i != config->end(); ++i) {
- AuthConfig *scheme = *i;
- scheme->registerWithCacheManager();
- }
-}
-
void
authenticateShutdown(void)
{
/// \ingroup AuthAPI
extern void authenticateInit(authConfig *);
/// \ingroup AuthAPI
-extern void authenticateRegisterWithCacheManager(authConfig * config);
-/// \ingroup AuthAPI
extern void authenticateShutdown(void);
/// \ingroup AuthAPI
extern int authenticateAuthUserInuse(AuthUser * auth_user);
static struct epoll_event *pevents;
+static void commEPollRegisterWithCacheManager(void);
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
static void commIncomingStats(StoreEntry * sentry);
-void
+static void
commEPollRegisterWithCacheManager(void)
{
CacheManager::GetInstance()->
#ifndef SQUID_COMM_EPOLL_H
#define SQUID_COMM_EPOLL_H
-/* forward decls */
-
-class CacheManager;
-
-extern void commEPollRegisterWithCacheManager(void);
-
#endif /* SQUID_COMM_EPOLL_H */
static int kqoff; /* offset into the buffer */
static int max_poll_time = 1000;
+static void commKQueueRegisterWithCacheManager(void);
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
/* Private functions */
max_poll_time = 10;
}
-void
+static void
commKQueueRegisterWithCacheManager(void)
{
}
#ifndef SQUID_COMM_KQUEUE_H
#define SQUID_COMM_KQUEUE_H
-/* forward decls */
-
-class CacheManager;
-
-extern void commKQueueRegisterWithCacheManager(void);
-
#endif /* SQUID_COMM_KQUEUE_H */
statHistCount(&statCounter.comm_dns_incoming, nevents);
}
-void
-comm_select_init(void)
-{
- commPollRegisterWithCacheManager();
-}
-void
+static void
commPollRegisterWithCacheManager(void)
{
CacheManager::GetInstance()->
commIncomingStats, 0, 1);
}
+void
+comm_select_init(void)
+{
+ commPollRegisterWithCacheManager();
+}
static void
commIncomingStats(StoreEntry * sentry)
#ifndef SQUID_COMM_POLL_H
#define SQUID_COMM_POLL_H
-/* forward decls */
-
-class CacheManager;
-
-extern void commPollRegisterWithCacheManager(void);
#endif /* SQUID_COMM_POLL_H */
statHistCount(&statCounter.comm_dns_incoming, nevents);
}
+static void
+commSelectRegisterWithCacheManager(void)
+{
+ CacheManager::GetInstance()->
+ registerAction("comm_select_incoming",
+ "comm_incoming() stats",
+ commIncomingStats, 0, 1);
+}
+
void
comm_select_init(void)
{
commSelectRegisterWithCacheManager();
}
-void
-commSelectRegisterWithCacheManager(void)
-{
- CacheManager::GetInstance()->
- registerAction("comm_select_incoming",
- "comm_incoming() stats",
- commIncomingStats, 0, 1);
-}
-
/*
* examine_select - debug routine.
*
#ifndef SQUID_COMM_SELECT_H
#define SQUID_COMM_SELECT_H
-/* forward decls */
-
-class CacheManager;
-
-extern void commSelectRegisterWithCacheManager(void);
#endif /* SQUID_COMM_SELECT_H */
FwdState::initModule();
/* register the modules in the cache manager menus */
- // asnRegisterWithCacheManager(); //moved to asnInit()
- // authenticateRegisterWithCacheManager(&Config.authConfiguration);
- // moved authenticateInit()
cbdataRegisterWithCacheManager();
/* These use separate calls so that the comm loops can eventually
* coexist.
*/
-#ifdef USE_EPOLL
- //commEPollRegisterWithCacheManager(); //moved to comm_epoll::comm_select_init()
-#endif
-#ifdef USE_KQUEUE
- // commKQueueRegisterWithCacheManager(); //moved to comm_kqueue::comm_select_init
-#endif
-#ifdef USE_POLL
- // commPollRegisterWithCacheManager(); //moved to comm_poll::comm_select_init()
-#endif
-#if defined(USE_SELECT) || defined(USE_SELECT_WIN32)
- // commSelectRegisterWithCacheManager(); //moved to comm_select::comm_select_init
-#endif
//clientdbRegisterWithCacheManager(); //moved to clientdbInit()
#if DELAY_POOLS