SQUIDCEXTERN void xprof_stop(xprof_type type, const char *timer);
SQUIDCEXTERN void xprof_event(void *data);
#if __cplusplus
-extern void xprofRegisterWithCacheManager(CacheManager & manager);
+extern void xprofRegisterWithCacheManager(void);
#endif
#define PROF_start(type) xprof_start(XPROF_##type, #type)
}
void
-xprofRegisterWithCacheManager(CacheManager & manager)
+xprofRegisterWithCacheManager(void)
{
- manager.registerAction("cpu_profile", "CPU Profiling Stats", xprof_summary, 0, 1);
+ CacheManager::GetInstance()->
+ registerAction("cpu_profile", "CPU Profiling Stats", xprof_summary, 0, 1);
}
void
SQUIDCEXTERN void storeInit(void);
/// \ingroup StoreAPI
-extern void storeRegisterWithCacheManager(CacheManager & manager);
+extern void storeRegisterWithCacheManager(void);
/// \ingroup StoreAPI
SQUIDCEXTERN void storeConfigure(void);
statRegisterWithCacheManager();
storeDigestRegisterWithCacheManager();
StoreFileSystem::RegisterAllFsWithCacheManager(*manager);
- storeRegisterWithCacheManager(*manager);
- storeLogRegisterWithCacheManager(*manager);
+ storeRegisterWithCacheManager();
+ storeLogRegisterWithCacheManager();
#if DEBUGSTRINGS
StringRegistry::Instance().registerWithCacheManager();
#if USE_XPROF_STATS
- xprofRegisterWithCacheManager(*manager);
+ xprofRegisterWithCacheManager();
#endif
}
SQUIDCEXTERN void storeLogRotate(void);
SQUIDCEXTERN void storeLogClose(void);
SQUIDCEXTERN void storeLogOpen(void);
-SQUIDCEXTERN void storeLogRegisterWithCacheManager(CacheManager &);
+SQUIDCEXTERN void storeLogRegisterWithCacheManager(void);
/*
}
void
-storeRegisterWithCacheManager(CacheManager & manager)
+storeRegisterWithCacheManager(void)
{
- manager.registerAction("storedir",
- "Store Directory Stats",
- Store::Stats, 0, 1);
- manager.registerAction("store_check_cachable_stats",
- "storeCheckCachable() Stats",
+ CacheManager *manager=CacheManager::GetInstance();
+ manager->registerAction("storedir", "Store Directory Stats", Store::Stats, 0, 1);
+ manager->registerAction("store_io", "Store IO Interface Stats", storeIOStats, 0, 1);
+ manager->registerAction("store_check_cachable_stats", "storeCheckCachable() Stats",
storeCheckCachableStats, 0, 1);
- manager.registerAction("store_io",
- "Store IO Interface Stats",
- storeIOStats, 0, 1);
}
void
}
void
-storeLogRegisterWithCacheManager(CacheManager & manager)
+storeLogRegisterWithCacheManager(void)
{
- manager.registerAction("store_log_tags",
- "Histogram of store.log tags",
- storeLogTagsHist, 0, 1);
+ CacheManager::GetInstance()->
+ registerAction("store_log_tags", "Histogram of store.log tags",
+ storeLogTagsHist, 0, 1);
}
void