Commit 36684de4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Move *_Init functions to cache.h to reduce #include pollution

parent c095a4d4
......@@ -704,6 +704,12 @@ int VCA_Accept(struct listen_sock *ls, struct wrk_accept *wa);
const char *VCA_SetupSess(struct worker *w, struct sess *sp);
void VCA_FailSess(struct worker *w);
/* cache_backend_cfg.c */
void VBE_InitCfg(void);
/* cache_backend_poll.c */
void VBP_Init(void);
/* cache_ban.c */
struct ban *BAN_New(void);
int BAN_AddTest(struct ban *, const char *, const char *, const char *);
......
......@@ -108,7 +108,6 @@ void VBE_DropRefConn(struct backend *, const struct acct_bereq *);
void VBE_DropRefVcl(struct backend *);
void VBE_DropRefLocked(struct backend *b, const struct acct_bereq *);
unsigned VBE_Healthy(const struct backend *b, double *changed);
void VBE_InitCfg(void);
struct backend *VBE_AddBackend(const struct vrt_backend *vb);
void VBE_Poll(void);
......@@ -119,9 +118,6 @@ void VBP_Remove(struct backend *b, struct vrt_backend_probe const *p);
void VBP_Use(const struct backend *b, const struct vrt_backend_probe *p);
void VBP_Summary(struct cli *cli, const struct vbp_target *vt);
/* cache_backend_poll.c */
void VBP_Init(void);
struct tcp_pool *VBT_Ref(const char *name, const struct suckaddr *ip4,
const struct suckaddr *ip6);
void VBT_Rel(struct tcp_pool **tpp);
......
......@@ -33,8 +33,6 @@
#include <stdlib.h>
#include "cache.h"
#include "cache_backend.h"
#include "cache_director.h"
#include "common/heritage.h"
#include "vcli_priv.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment