needed for the next patch
>From ce9d7364b04f5ac4d65443b9d3ad319239179cc9 Mon Sep 17 00:00:00 2001
From: Nils Goroll <[email protected]>
Date: Mon, 21 Jul 2014 13:20:59 +0200
Subject: [PATCH 2/3] add VCL_MET_MASK_CLIENT and VCL_MET_MASK_BACKEND
---
lib/libvcc/generate.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/libvcc/generate.py b/lib/libvcc/generate.py
index 2906588..e27ce59 100755
--- a/lib/libvcc/generate.py
+++ b/lib/libvcc/generate.py
@@ -895,6 +895,8 @@ for i in returns:
fo.write("\n#define VCL_MET_MAX\t\t%d\n" % n)
fo.write("\n#define VCL_MET_MASK\t\t0x%x\n" % ((1 << n) - 1))
+fo.write("#define VCL_MET_MASK_CLIENT\t\t(" + "|".join(list(map(lambda meth: "VCL_MET_" + meth.upper(), vcls_client))) + ")\n")
+fo.write("#define VCL_MET_MASK_BACKEND\t\t(" + "|".join(list(map(lambda meth: "VCL_MET_" + meth.upper(), vcls_backend))) + ")\n")
fo.write("\n/* VCL Returns */\n")
n = 0
--
2.0.1
_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev