Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
c3a41949
Commit
c3a41949
authored
Sep 24, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Concentrate director and backend related prototypes in cache_backend.h
parent
e88f87b4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
22 deletions
+22
-22
cache.h
bin/varnishd/cache/cache.h
+0
-22
cache_backend.h
bin/varnishd/cache/cache_backend.h
+19
-0
cache_fetch.c
bin/varnishd/cache/cache_fetch.c
+1
-0
cache_main.c
bin/varnishd/cache/cache_main.c
+1
-0
cache_vcl.c
bin/varnishd/cache/cache_vcl.c
+1
-0
No files found.
bin/varnishd/cache/cache.h
View file @
c3a41949
...
...
@@ -691,28 +691,6 @@ 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.c */
void
VBE_UseHealth
(
const
struct
director
*
vdi
);
void
VBE_DiscardHealth
(
const
struct
director
*
vdi
);
/* cache_dir.c */
int
VDI_GetHdr
(
struct
worker
*
wrk
,
struct
busyobj
*
bo
);
struct
vbc
*
VDI_GetFd
(
const
struct
director
*
d
,
struct
worker
*
wrk
,
struct
busyobj
*
);
int
VDI_Healthy
(
const
struct
director
*
);
void
VDI_CloseFd
(
struct
vbc
**
vbp
,
const
struct
acct_bereq
*
);
void
VDI_RecycleFd
(
struct
vbc
**
vbp
,
const
struct
acct_bereq
*
);
void
VDI_AddHostHeader
(
struct
http
*
to
,
const
struct
vbc
*
vbc
);
void
VBE_Poll
(
void
);
void
VDI_Init
(
void
);
/* cache_backend_cfg.c */
void
VBE_InitCfg
(
void
);
struct
backend
*
VBE_AddBackend
(
struct
cli
*
cli
,
const
struct
vrt_backend
*
vb
);
/* 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
*
);
...
...
bin/varnishd/cache/cache_backend.h
View file @
c3a41949
...
...
@@ -134,12 +134,16 @@ struct vbc {
/* cache_backend.c */
void
VBE_ReleaseConn
(
struct
vbc
*
vc
);
void
VBE_UseHealth
(
const
struct
director
*
vdi
);
void
VBE_DiscardHealth
(
const
struct
director
*
vdi
);
/* cache_backend_cfg.c */
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
(
struct
cli
*
cli
,
const
struct
vrt_backend
*
vb
);
/* cache_backend_poll.c */
void
VBP_Insert
(
struct
backend
*
b
,
struct
vrt_backend_probe
const
*
p
,
...
...
@@ -147,3 +151,18 @@ void VBP_Insert(struct backend *b, struct vrt_backend_probe const *p,
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_dir.c */
int
VDI_GetHdr
(
struct
worker
*
wrk
,
struct
busyobj
*
bo
);
struct
vbc
*
VDI_GetFd
(
const
struct
director
*
d
,
struct
worker
*
wrk
,
struct
busyobj
*
);
int
VDI_Healthy
(
const
struct
director
*
);
void
VDI_CloseFd
(
struct
vbc
**
vbp
,
const
struct
acct_bereq
*
);
void
VDI_RecycleFd
(
struct
vbc
**
vbp
,
const
struct
acct_bereq
*
);
void
VDI_AddHostHeader
(
struct
http
*
to
,
const
struct
vbc
*
vbc
);
void
VBE_Poll
(
void
);
void
VDI_Init
(
void
);
/* cache_backend_poll.c */
void
VBP_Init
(
void
);
bin/varnishd/cache/cache_fetch.c
View file @
c3a41949
...
...
@@ -35,6 +35,7 @@
#include <stdlib.h>
#include "cache.h"
#include "cache_backend.h"
#include "vend.h"
#include "hash/hash_slinger.h"
#include "vcl.h"
...
...
bin/varnishd/cache/cache_main.c
View file @
c3a41949
...
...
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include "cache.h"
#include "cache_backend.h"
#include "common/heritage.h"
#include "vcli_priv.h"
...
...
bin/varnishd/cache/cache_vcl.c
View file @
c3a41949
...
...
@@ -37,6 +37,7 @@
#include <stdlib.h>
#include "cache.h"
#include "cache_backend.h"
#include "vcl.h"
#include "vrt.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment