[master] 7b15782 Move more stuff out of $ABI VRT

Poul-Henning Kamp phk at FreeBSD.org
Mon Sep 25 16:53:05 UTC 2017


commit 7b1578204fdcf6bf4f6c6a5492042a3e87533fb5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Sep 25 16:52:17 2017 +0000

    Move more stuff out of $ABI VRT

diff --git a/bin/varnishd/cache/cache_filter.h b/bin/varnishd/cache/cache_filter.h
index 6d642aa..2556a07 100644
--- a/bin/varnishd/cache/cache_filter.h
+++ b/bin/varnishd/cache/cache_filter.h
@@ -67,25 +67,10 @@ struct vfp_entry {
 	uint64_t		bytes_out;
 };
 
-
-extern const struct vfp vfp_gunzip;
-extern const struct vfp vfp_gzip;
-extern const struct vfp vfp_testgunzip;
-extern const struct vfp vfp_esi;
-extern const struct vfp vfp_esi_gzip;
-
-struct vfp_entry *VFP_Push(struct vfp_ctx *, const struct vfp *);
-void VFP_Setup(struct vfp_ctx *vc);
-int VFP_Open(struct vfp_ctx *bo);
-void VFP_Close(struct vfp_ctx *bo);
 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);
 
-/* cache_fetch_proc.c */
-enum vfp_status VFP_GetStorage(struct vfp_ctx *, ssize_t *sz, uint8_t **ptr);
-void VFP_Extend(const struct vfp_ctx *, ssize_t sz);
-
 /* Deliver processors ------------------------------------------------*/
 
 enum vdp_action {
@@ -110,8 +95,6 @@ struct vdp_entry {
 int VDP_bytes(struct req *, enum vdp_action act, const void *ptr, ssize_t len);
 void VDP_push(struct req *, vdp_bytes *func, void *priv, int bottom,
     const char *id);
-void VDP_close(struct req *req);
-int VDP_DeliverObj(struct req *req);
 
 vdp_bytes VDP_gunzip;
 vdp_bytes VDP_ESI;
diff --git a/bin/varnishd/cache/cache_priv.h b/bin/varnishd/cache/cache_priv.h
index b6cec52..3434ce9 100644
--- a/bin/varnishd/cache/cache_priv.h
+++ b/bin/varnishd/cache/cache_priv.h
@@ -31,6 +31,8 @@
 
 #include "VSC_main.h"
 
+struct vfp;
+
 /* Prototypes etc ----------------------------------------------------*/
 
 /* cache_acceptor.c */
@@ -72,11 +74,27 @@ void CLI_Init(void);
 void CLI_Run(void);
 void CLI_AddFuncs(struct cli_proto *p);
 
+/* cache_deliver_proc.c */
+void VDP_close(struct req *req);
+int VDP_DeliverObj(struct req *req);
+
 /* cache_expire.c */
 void EXP_Init(void);
 
 /* cache_fetch_proc.c */
 void VFP_Init(void);
+enum vfp_status VFP_GetStorage(struct vfp_ctx *, ssize_t *sz, uint8_t **ptr);
+void VFP_Extend(const struct vfp_ctx *, ssize_t sz);
+struct vfp_entry *VFP_Push(struct vfp_ctx *, const struct vfp *);
+void VFP_Setup(struct vfp_ctx *vc);
+int VFP_Open(struct vfp_ctx *bo);
+void VFP_Close(struct vfp_ctx *bo);
+
+extern const struct vfp vfp_gunzip;
+extern const struct vfp vfp_gzip;
+extern const struct vfp vfp_testgunzip;
+extern const struct vfp vfp_esi;
+extern const struct vfp vfp_esi_gzip;
 
 /* cache_http.c */
 void HTTP_Init(void);


More information about the varnish-commit mailing list