From 3534535b5dff995c7ef34598ba2e2e53ae535478 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 5 Feb 2008 10:50:33 +0000 Subject: [PATCH] Add a discard flag to the VCL_conf. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2430 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/include/vcl.h | 1 + varnish-cache/lib/libvcl/vcc_fixed_token.c | 1 + varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl | 1 + 3 files changed, 3 insertions(+) diff --git a/varnish-cache/include/vcl.h b/varnish-cache/include/vcl.h index 8973590b..98c5424b 100644 --- a/varnish-cache/include/vcl.h +++ b/varnish-cache/include/vcl.h @@ -21,6 +21,7 @@ struct VCL_conf { struct vrt_ref *ref; unsigned nref; unsigned busy; + unsigned discard; unsigned nsrc; const char **srcname; diff --git a/varnish-cache/lib/libvcl/vcc_fixed_token.c b/varnish-cache/lib/libvcl/vcc_fixed_token.c index d49f2656..8fd186cc 100644 --- a/varnish-cache/lib/libvcl/vcc_fixed_token.c +++ b/varnish-cache/lib/libvcl/vcc_fixed_token.c @@ -325,6 +325,7 @@ vcl_output_lang_h(struct vsb *sb) vsb_cat(sb, " struct vrt_ref *ref;\n"); vsb_cat(sb, " unsigned nref;\n"); vsb_cat(sb, " unsigned busy;\n"); + vsb_cat(sb, " unsigned discard;\n"); vsb_cat(sb, " \n"); vsb_cat(sb, " unsigned nsrc;\n"); vsb_cat(sb, " const char **srcname;\n"); diff --git a/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl b/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl index 47e0679a..20c20d11 100755 --- a/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl +++ b/varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl @@ -137,6 +137,7 @@ puts $fo { unsigned magic; struct vrt_ref *ref; unsigned nref; unsigned busy; + unsigned discard; unsigned nsrc; const char **srcname; -- 2.39.5