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
f58469a7
Commit
f58469a7
authored
Apr 23, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reserve "VPI_" for functions which only VCC is allowed to call.
parent
96da1204
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
9 deletions
+13
-9
cache_vrt_vcl.c
bin/varnishd/cache/cache_vrt_vcl.c
+3
-3
vtla.rst
doc/sphinx/reference/vtla.rst
+4
-0
vcc_interface.h
include/vcc_interface.h
+3
-3
vcc_action.c
lib/libvcc/vcc_action.c
+3
-3
No files found.
bin/varnishd/cache/cache_vrt_vcl.c
View file @
f58469a7
...
...
@@ -325,7 +325,7 @@ VRT_count(VRT_CTX, unsigned u)
}
VCL_VCL
V
RT
_vcl_get
(
VRT_CTX
,
const
char
*
name
)
V
PI
_vcl_get
(
VRT_CTX
,
const
char
*
name
)
{
VCL_VCL
vcl
;
...
...
@@ -339,7 +339,7 @@ VRT_vcl_get(VRT_CTX, const char *name)
}
void
V
RT
_vcl_rel
(
VRT_CTX
,
VCL_VCL
vcl
)
V
PI
_vcl_rel
(
VRT_CTX
,
VCL_VCL
vcl
)
{
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
AN
(
vcl
);
...
...
@@ -349,7 +349,7 @@ VRT_vcl_rel(VRT_CTX, VCL_VCL vcl)
}
void
V
RT
_vcl_select
(
VRT_CTX
,
VCL_VCL
vcl
)
V
PI
_vcl_select
(
VRT_CTX
,
VCL_VCL
vcl
)
{
struct
req
*
req
=
ctx
->
req
;
...
...
doc/sphinx/reference/vtla.rst
View file @
f58469a7
...
...
@@ -62,6 +62,10 @@ VLU
Varnish Line Up -- library functions to collect stream of bytes
into lines for processing. (lib/libvarnish/vlu.c)
VPI
VCC Private Interface -- functions in varnishd which only VCC is
allowed to call.
VRE
Varnish Regular Expression -- library functions for regular expression
based matching and substring replacement. (lib/libvarnish/vre.c)
...
...
include/vcc_interface.h
View file @
f58469a7
...
...
@@ -33,6 +33,6 @@
* NB: When this file is changed, lib/libvcc/generate.py *MUST* be rerun.
*/
VCL_VCL
V
RT
_vcl_get
(
VRT_CTX
,
const
char
*
);
void
V
RT
_vcl_rel
(
VRT_CTX
,
VCL_VCL
);
void
V
RT
_vcl_select
(
VRT_CTX
,
VCL_VCL
);
VCL_VCL
V
PI
_vcl_get
(
VRT_CTX
,
const
char
*
);
void
V
PI
_vcl_rel
(
VRT_CTX
,
VCL_VCL
);
void
V
PI
_vcl_select
(
VRT_CTX
,
VCL_VCL
);
lib/libvcc/vcc_action.c
View file @
f58469a7
...
...
@@ -284,12 +284,12 @@ vcc_act_return_vcl(struct vcc *tl)
p
=
New_IniFin
(
tl
);
AN
(
p
);
VSB_printf
(
p
->
ini
,
"
\t
%s = V
RT
_vcl_get(ctx,
\"
%s
\"
);"
,
VSB_printf
(
p
->
ini
,
"
\t
%s = V
PI
_vcl_get(ctx,
\"
%s
\"
);"
,
buf
,
sym
->
name
);
VSB_printf
(
p
->
fin
,
"
\t
V
RT
_vcl_rel(ctx, %s);"
,
VSB_printf
(
p
->
fin
,
"
\t
V
PI
_vcl_rel(ctx, %s);"
,
buf
);
}
Fb
(
tl
,
1
,
"V
RT
_vcl_select(ctx, %s);
\t
/* %s */
\n
"
,
Fb
(
tl
,
1
,
"V
PI
_vcl_select(ctx, %s);
\t
/* %s */
\n
"
,
(
const
char
*
)
sym
->
eval_priv
,
sym
->
name
);
SkipToken
(
tl
,
')'
);
}
...
...
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