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
ad69f04e
Commit
ad69f04e
authored
Apr 19, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename functions to their new family
parent
716a307a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
16 deletions
+15
-16
cache_fetch.c
bin/varnishd/cache/cache_fetch.c
+1
-1
cache_filter.h
bin/varnishd/cache/cache_filter.h
+2
-3
cache_varnishd.h
bin/varnishd/cache/cache_varnishd.h
+1
-0
cache_vcl_vrt.c
bin/varnishd/cache/cache_vcl_vrt.c
+11
-12
No files found.
bin/varnishd/cache/cache_fetch.c
View file @
ad69f04e
...
...
@@ -606,7 +606,7 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo)
}
if
(
bo
->
filter_list
==
NULL
||
V
FP_FilterList
(
bo
->
vfc
,
bo
->
filter_list
))
{
V
CL_StackVFP
(
bo
->
vfc
,
bo
->
filter_list
))
{
(
bo
)
->
htc
->
doclose
=
SC_OVERLOAD
;
VDI_Finish
((
bo
)
->
wrk
,
bo
);
return
(
F_STP_ERROR
);
...
...
bin/varnishd/cache/cache_filter.h
View file @
ad69f04e
...
...
@@ -88,9 +88,8 @@ struct vfp_ctx {
enum
vfp_status
VFP_Suck
(
struct
vfp_ctx
*
,
void
*
p
,
ssize_t
*
lp
);
enum
vfp_status
VFP_Error
(
struct
vfp_ctx
*
,
const
char
*
fmt
,
...)
v_printflike_
(
2
,
3
);
int
VFP_FilterList
(
struct
vfp_ctx
*
,
const
char
*
);
void
VFP_AddFilter
(
struct
vcl
*
,
const
struct
vfp
*
);
void
VFP_RemoveFilter
(
struct
vcl
*
,
const
struct
vfp
*
);
void
VRT_AddVFP
(
VRT_CTX
,
const
struct
vfp
*
);
void
VRT_RemoveVFP
(
VRT_CTX
,
const
struct
vfp
*
);
/* Deliver processors ------------------------------------------------*/
...
...
bin/varnishd/cache/cache_varnishd.h
View file @
ad69f04e
...
...
@@ -407,6 +407,7 @@ int VCL_IterDirector(struct cli *, const char *, vcl_be_func *, void *);
/* cache_vcl_vrt.c */
void
VCL_VRT_Init
(
void
);
int
VCL_StackVFP
(
struct
vfp_ctx
*
,
const
char
*
);
/* cache_vrt.c */
void
VRTPRIV_init
(
struct
vrt_privs
*
privs
);
...
...
bin/varnishd/cache/cache_vcl_vrt.c
View file @
ad69f04e
...
...
@@ -431,7 +431,7 @@ static struct vfp_filter_head vfp_filters =
VTAILQ_HEAD_INITIALIZER
(
vfp_filters
);
void
V
FP_AddFilter
(
struct
vcl
*
vcl
,
const
struct
vfp
*
filter
)
V
RT_AddVFP
(
VRT_CTX
,
const
struct
vfp
*
filter
)
{
struct
vfp_filter
*
vp
;
struct
vfp_filter_head
*
hd
=
&
vfp_filters
;
...
...
@@ -440,8 +440,8 @@ VFP_AddFilter(struct vcl *vcl, const struct vfp *filter)
xxxassert
(
vp
->
filter
!=
filter
);
xxxassert
(
strcasecmp
(
vp
->
filter
->
name
,
filter
->
name
));
}
if
(
vcl
!=
NULL
)
{
hd
=
&
vcl
->
vfps
;
if
(
ctx
!=
NULL
)
{
hd
=
&
ctx
->
vcl
->
vfps
;
VTAILQ_FOREACH
(
vp
,
hd
,
list
)
{
xxxassert
(
vp
->
filter
!=
filter
);
xxxassert
(
strcasecmp
(
vp
->
filter
->
name
,
filter
->
name
));
...
...
@@ -455,12 +455,11 @@ VFP_AddFilter(struct vcl *vcl, const struct vfp *filter)
}
void
V
FP_RemoveFilter
(
struct
vcl
*
vcl
,
const
struct
vfp
*
filter
)
V
RT_RemoveVFP
(
VRT_CTX
,
const
struct
vfp
*
filter
)
{
struct
vfp_filter
*
vp
;
struct
vfp_filter_head
*
hd
=
&
vcl
->
vfps
;
struct
vfp_filter_head
*
hd
=
&
ctx
->
vcl
->
vfps
;
AN
(
vcl
);
VTAILQ_FOREACH
(
vp
,
hd
,
list
)
{
if
(
vp
->
filter
==
filter
)
break
;
...
...
@@ -471,7 +470,7 @@ VFP_RemoveFilter(struct vcl *vcl, const struct vfp *filter)
}
int
V
FP_FilterList
(
struct
vfp_ctx
*
vc
,
const
char
*
fl
)
V
CL_StackVFP
(
struct
vfp_ctx
*
vc
,
const
char
*
fl
)
{
const
char
*
p
,
*
q
;
const
struct
vfp_filter
*
vp
;
...
...
@@ -504,9 +503,9 @@ VFP_FilterList(struct vfp_ctx *vc, const char *fl)
void
VCL_VRT_Init
(
void
)
{
V
FP_AddFilter
(
NULL
,
&
VFP_testgunzip
);
V
FP_AddFilter
(
NULL
,
&
VFP_gunzip
);
V
FP_AddFilter
(
NULL
,
&
VFP_gzip
);
V
FP_AddFilter
(
NULL
,
&
VFP_esi
);
V
FP_AddFilter
(
NULL
,
&
VFP_esi_gzip
);
V
RT_AddVFP
(
NULL
,
&
VFP_testgunzip
);
V
RT_AddVFP
(
NULL
,
&
VFP_gunzip
);
V
RT_AddVFP
(
NULL
,
&
VFP_gzip
);
V
RT_AddVFP
(
NULL
,
&
VFP_esi
);
V
RT_AddVFP
(
NULL
,
&
VFP_esi_gzip
);
}
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