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
b78a4672
Commit
b78a4672
authored
Aug 29, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Privatize stuff.
parent
62d0cdd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
24 deletions
+5
-24
cache_varnishd.h
bin/varnishd/cache/cache_varnishd.h
+2
-4
cache_vrt_priv.c
bin/varnishd/cache/cache_vrt_priv.c
+3
-20
No files found.
bin/varnishd/cache/cache_varnishd.h
View file @
b78a4672
...
...
@@ -387,8 +387,8 @@ void VCL_Poll(void);
void
VCL_Ref
(
struct
vcl
*
);
void
VCL_Refresh
(
struct
vcl
**
);
void
VCL_Rel
(
struct
vcl
**
);
void
VCL_TaskEnter
(
struct
vcl
*
,
struct
vrt_privs
*
);
void
VCL_TaskLeave
(
struct
vcl
*
,
struct
vrt_privs
*
);
void
VCL_TaskEnter
(
const
struct
vcl
*
,
struct
vrt_privs
*
);
void
VCL_TaskLeave
(
const
struct
vcl
*
,
struct
vrt_privs
*
);
const
char
*
VCL_Return_Name
(
unsigned
);
const
char
*
VCL_Method_Name
(
unsigned
);
void
VCL_Bo2Ctx
(
struct
vrt_ctx
*
,
struct
busyobj
*
);
...
...
@@ -409,8 +409,6 @@ void VCL_VRT_Init(void);
int
VCL_StackVFP
(
struct
vfp_ctx
*
,
const
struct
vcl
*
,
const
char
*
);
/* cache_vrt.c */
void
VRTPRIV_init
(
struct
vrt_privs
*
privs
);
void
VRTPRIV_dynamic_kill
(
struct
vrt_privs
*
privs
,
uintptr_t
id
);
void
pan_privs
(
struct
vsb
*
,
const
struct
vrt_privs
*
);
/* cache_vrt_priv.c */
...
...
bin/varnishd/cache/cache_vrt_priv.c
View file @
b78a4672
...
...
@@ -83,7 +83,7 @@ pan_privs(struct vsb *vsb, const struct vrt_privs *privs)
/*--------------------------------------------------------------------
*/
void
static
void
VRTPRIV_init
(
struct
vrt_privs
*
privs
)
{
...
...
@@ -117,23 +117,6 @@ vrt_priv_dynamic(const struct vcl *vcl, struct ws *ws,
return
(
vp
->
priv
);
}
void
VRTPRIV_dynamic_kill
(
struct
vrt_privs
*
privs
,
uintptr_t
id
)
{
struct
vrt_priv
*
vp
,
*
vp1
;
CHECK_OBJ_NOTNULL
(
privs
,
VRT_PRIVS_MAGIC
);
AN
(
id
);
VTAILQ_FOREACH_SAFE
(
vp
,
&
privs
->
privs
,
list
,
vp1
)
{
CHECK_OBJ_NOTNULL
(
vp
,
VRT_PRIV_MAGIC
);
if
(
id
==
vp
->
id
)
{
VTAILQ_REMOVE
(
&
privs
->
privs
,
vp
,
list
);
VRT_priv_fini
(
vp
->
priv
);
}
}
}
struct
vmod_priv
*
VRT_priv_task
(
VRT_CTX
,
const
void
*
vmod_id
)
{
...
...
@@ -194,7 +177,7 @@ VRT_priv_fini(const struct vmod_priv *p)
/*--------------------------------------------------------------------*/
void
VCL_TaskEnter
(
struct
vcl
*
vcl
,
struct
vrt_privs
*
privs
)
VCL_TaskEnter
(
const
struct
vcl
*
vcl
,
struct
vrt_privs
*
privs
)
{
AN
(
vcl
);
...
...
@@ -203,7 +186,7 @@ VCL_TaskEnter(struct vcl *vcl, struct vrt_privs *privs)
}
void
VCL_TaskLeave
(
struct
vcl
*
vcl
,
struct
vrt_privs
*
privs
)
VCL_TaskLeave
(
const
struct
vcl
*
vcl
,
struct
vrt_privs
*
privs
)
{
struct
vrt_priv
*
vp
,
*
vp1
;
...
...
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