[master] 654da21eb Add a private pointer to struct vdp

Nils Goroll nils.goroll at uplex.de
Mon Apr 24 14:02:06 UTC 2023


commit 654da21eb030f269bdfbcc1fd2ca55e2e782e9a4
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Sat Apr 1 20:00:16 2023 +0200

    Add a private pointer to struct vdp
    
    to facilitate custom filter parametrization

diff --git a/bin/varnishd/cache/cache_filter.h b/bin/varnishd/cache/cache_filter.h
index 7b1d8fa75..18241ff63 100644
--- a/bin/varnishd/cache/cache_filter.h
+++ b/bin/varnishd/cache/cache_filter.h
@@ -122,6 +122,7 @@ struct vdp {
 	vdp_init_f		*init;
 	vdp_bytes_f		*bytes;
 	vdp_fini_f		*fini;
+	const void		*priv1;
 };
 
 struct vdp_entry {
diff --git a/include/vrt.h b/include/vrt.h
index 4f922d265..68a2ff5a5 100644
--- a/include/vrt.h
+++ b/include/vrt.h
@@ -58,6 +58,7 @@
  * binary/load-time compatible, increment MAJOR version
  *
  * NEXT (2023-09-15)
+ *	[cache_filter.h] struct vdp gained priv1 member
  * 17.0 (2023-03-15)
  *	VXID is 64 bit
  *	[cache.h] http_GetRange() changed


More information about the varnish-commit mailing list