[master] de50fefc7 wrap VPX_Format_Proxy for VRT
Nils Goroll
nils.goroll at uplex.de
Wed Jan 15 16:12:07 UTC 2020
commit de50fefc7b1a675d6c6c0c45f5337b8fb7078b61
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Fri Nov 23 15:56:16 2018 +0100
wrap VPX_Format_Proxy for VRT
diff --git a/bin/varnishd/cache/cache_vrt.c b/bin/varnishd/cache/cache_vrt.c
index 959b4be16..d1ad0f6d6 100644
--- a/bin/varnishd/cache/cache_vrt.c
+++ b/bin/varnishd/cache/cache_vrt.c
@@ -47,6 +47,7 @@
#include "common/heritage.h"
#include "common/vsmw.h"
+#include "proxy/cache_proxy.h"
const void * const vrt_magic_string_end = &vrt_magic_string_end;
const void * const vrt_magic_string_unset = &vrt_magic_string_unset;
@@ -986,3 +987,9 @@ VRT_VSA_GetPtr(VRT_CTX, const struct suckaddr *sua, const unsigned char ** dst)
}
return (VSA_GetPtr(sua, dst));
}
+
+void
+VRT_Format_Proxy(struct vsb *vsb, VCL_INT version, VCL_IP sac, VCL_IP sas)
+{
+ VPX_Format_Proxy(vsb, (int)version, sac, sas);
+}
diff --git a/include/vrt.h b/include/vrt.h
index 5e2543e1c..b8ee0fc61 100644
--- a/include/vrt.h
+++ b/include/vrt.h
@@ -76,6 +76,7 @@
* VRT_Stv_*() functions renamed to VRT_stevedore_*()
* [cache.h] WS_ReserveAll() added
* [cache.h] WS_Reserve(ws, 0) deprecated
+ * VRT_Fortmat_Proxy() added
* 9.0 (2019-03-15)
* Make 'len' in vmod_priv 'long'
* HTTP_Copy() removed
@@ -549,6 +550,7 @@ void VRT_DelDirector(VCL_BACKEND *);
/* Suckaddr related */
int VRT_VSA_GetPtr(VRT_CTX, VCL_IP sua, const unsigned char ** dst);
+void VRT_Format_Proxy(struct vsb *, VCL_INT, VCL_IP, VCL_IP);
typedef int vmod_event_f(VRT_CTX, struct vmod_priv *, enum vcl_event_e);
More information about the varnish-commit
mailing list