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
276ca5e8
Commit
276ca5e8
authored
Oct 26, 2020
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give VDP a proper VDP_Init() function
parent
0ac6be1b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
cache_deliver_proc.c
bin/varnishd/cache/cache_deliver_proc.c
+8
-0
cache_filter.h
bin/varnishd/cache/cache_filter.h
+1
-0
cache_req.c
bin/varnishd/cache/cache_req.c
+1
-2
No files found.
bin/varnishd/cache/cache_deliver_proc.c
View file @
276ca5e8
...
@@ -34,6 +34,13 @@
...
@@ -34,6 +34,13 @@
#include "cache_varnishd.h"
#include "cache_varnishd.h"
#include "cache_filter.h"
#include "cache_filter.h"
void
VDP_Init
(
struct
vdp_ctx
*
vdx
)
{
INIT_OBJ
(
vdx
,
VDP_CTX_MAGIC
);
VTAILQ_INIT
(
&
vdx
->
vdp
);
}
/* VDP_bytes
/* VDP_bytes
*
*
* Pushes len bytes at ptr down the delivery processor list.
* Pushes len bytes at ptr down the delivery processor list.
...
@@ -57,6 +64,7 @@
...
@@ -57,6 +64,7 @@
* r == 0: Continue
* r == 0: Continue
* r > 0: Stop, breaks out early without error condition
* r > 0: Stop, breaks out early without error condition
*/
*/
int
int
VDP_bytes
(
struct
vdp_ctx
*
vdx
,
enum
vdp_action
act
,
const
void
*
ptr
,
ssize_t
len
)
VDP_bytes
(
struct
vdp_ctx
*
vdx
,
enum
vdp_action
act
,
const
void
*
ptr
,
ssize_t
len
)
{
{
...
...
bin/varnishd/cache/cache_filter.h
View file @
276ca5e8
...
@@ -148,6 +148,7 @@ struct vdp_ctx {
...
@@ -148,6 +148,7 @@ struct vdp_ctx {
struct
req
*
req
;
struct
req
*
req
;
};
};
void
VDP_Init
(
struct
vdp_ctx
*
vdx
);
int
VDP_bytes
(
struct
vdp_ctx
*
,
enum
vdp_action
act
,
const
void
*
ptr
,
ssize_t
len
);
int
VDP_bytes
(
struct
vdp_ctx
*
,
enum
vdp_action
act
,
const
void
*
ptr
,
ssize_t
len
);
int
VDP_Push
(
struct
req
*
,
const
struct
vdp
*
,
void
*
priv
);
int
VDP_Push
(
struct
req
*
,
const
struct
vdp
*
,
void
*
priv
);
void
VRT_AddVDP
(
VRT_CTX
,
const
struct
vdp
*
);
void
VRT_AddVDP
(
VRT_CTX
,
const
struct
vdp
*
);
...
...
bin/varnishd/cache/cache_req.c
View file @
276ca5e8
...
@@ -131,8 +131,7 @@ Req_New(const struct worker *wrk, struct sess *sp)
...
@@ -131,8 +131,7 @@ Req_New(const struct worker *wrk, struct sess *sp)
p
=
(
void
*
)
PRNDUP
(
p
+
sizeof
(
*
req
->
htc
));
p
=
(
void
*
)
PRNDUP
(
p
+
sizeof
(
*
req
->
htc
));
req
->
vdc
=
(
void
*
)
p
;
req
->
vdc
=
(
void
*
)
p
;
INIT_OBJ
(
req
->
vdc
,
VDP_CTX_MAGIC
);
VDP_Init
(
req
->
vdc
);
VTAILQ_INIT
(
&
req
->
vdc
->
vdp
);
p
=
(
void
*
)
PRNDUP
(
p
+
sizeof
(
*
req
->
vdc
));
p
=
(
void
*
)
PRNDUP
(
p
+
sizeof
(
*
req
->
vdc
));
req
->
htc
=
(
void
*
)
p
;
req
->
htc
=
(
void
*
)
p
;
...
...
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