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
49641a8d
Commit
49641a8d
authored
Oct 27, 2020
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stash more internal stuff away (re: #2800)
parent
99016d84
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
cache_filter.h
bin/varnishd/cache/cache_filter.h
+2
-15
cache_varnishd.h
bin/varnishd/cache/cache_varnishd.h
+11
-0
No files found.
bin/varnishd/cache/cache_filter.h
View file @
49641a8d
...
...
@@ -32,6 +32,7 @@
struct
req
;
struct
vfp_entry
;
struct
vfp_ctx
;
struct
vdp_ctx
;
/* Fetch processors --------------------------------------------------*/
...
...
@@ -87,7 +88,6 @@ struct vfp_ctx {
unsigned
obj_flags
;
};
struct
vfp_entry
*
VFP_Push
(
struct
vfp_ctx
*
,
const
struct
vfp
*
);
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
);
...
...
@@ -110,8 +110,6 @@ typedef int vdp_init_f(struct vdp_ctx *, void **priv);
* positive: Don't push this VDP anyway
*/
struct
vdp_ctx
;
typedef
int
vdp_fini_f
(
struct
vdp_ctx
*
,
void
**
priv
);
typedef
int
vdp_bytes_f
(
struct
vdp_ctx
*
,
enum
vdp_action
,
void
**
priv
,
const
void
*
ptr
,
ssize_t
len
);
...
...
@@ -148,17 +146,6 @@ struct vdp_ctx {
struct
req
*
req
;
};
extern
const
struct
vdp
VDP_gunzip
;
extern
const
struct
vdp
VDP_esi
;
extern
const
struct
vdp
VDP_range
;
void
VDP_Init
(
struct
vdp_ctx
*
vdx
,
struct
worker
*
wrk
,
struct
vsl_log
*
vsl
,
struct
req
*
req
);
uint64_t
VDP_Close
(
struct
vdp_ctx
*
);
int
VDP_DeliverObj
(
struct
vdp_ctx
*
vdc
,
struct
objcore
*
oc
);
int
VDP_bytes
(
struct
vdp_ctx
*
,
enum
vdp_action
act
,
const
void
*
ptr
,
ssize_t
len
);
int
VDP_Push
(
struct
vdp_ctx
*
,
struct
ws
*
,
const
struct
vdp
*
,
void
*
priv
);
int
VDP_bytes
(
struct
vdp_ctx
*
,
enum
vdp_action
act
,
const
void
*
,
ssize_t
);
void
VRT_AddVDP
(
VRT_CTX
,
const
struct
vdp
*
);
void
VRT_RemoveVDP
(
VRT_CTX
,
const
struct
vdp
*
);
bin/varnishd/cache/cache_varnishd.h
View file @
49641a8d
...
...
@@ -50,6 +50,7 @@
/*--------------------------------------------------------------------*/
struct
vfp
;
struct
vdp
;
struct
cli_proto
;
struct
poolparam
;
...
...
@@ -174,7 +175,16 @@ void VDI_Event(const struct director *d, enum vcl_event_e ev);
void
VDI_Init
(
void
);
/* cache_deliver_proc.c */
void
VDP_Init
(
struct
vdp_ctx
*
vdx
,
struct
worker
*
wrk
,
struct
vsl_log
*
vsl
,
struct
req
*
req
);
uint64_t
VDP_Close
(
struct
vdp_ctx
*
);
void
VDP_Panic
(
struct
vsb
*
vsb
,
const
struct
vdp_ctx
*
vdc
);
int
VDP_Push
(
struct
vdp_ctx
*
,
struct
ws
*
,
const
struct
vdp
*
,
void
*
priv
);
int
VDP_DeliverObj
(
struct
vdp_ctx
*
vdc
,
struct
objcore
*
oc
);
extern
const
struct
vdp
VDP_gunzip
;
extern
const
struct
vdp
VDP_esi
;
extern
const
struct
vdp
VDP_range
;
/* cache_exp.c */
vtim_real
EXP_Ttl
(
const
struct
req
*
,
const
struct
objcore
*
);
...
...
@@ -253,6 +263,7 @@ void Bereq_Rollback(struct busyobj *);
/* cache_fetch_proc.c */
void
VFP_Init
(
void
);
struct
vfp_entry
*
VFP_Push
(
struct
vfp_ctx
*
,
const
struct
vfp
*
);
enum
vfp_status
VFP_GetStorage
(
struct
vfp_ctx
*
,
ssize_t
*
sz
,
uint8_t
**
ptr
);
void
VFP_Extend
(
const
struct
vfp_ctx
*
,
ssize_t
sz
,
enum
vfp_status
);
void
VFP_Setup
(
struct
vfp_ctx
*
vc
,
struct
worker
*
wrk
);
...
...
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