]> err.no Git - varnish/commitdiff
Add a discard flag to the VCL_conf.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 5 Feb 2008 10:50:33 +0000 (10:50 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 5 Feb 2008 10:50:33 +0000 (10:50 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2430 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/include/vcl.h
varnish-cache/lib/libvcl/vcc_fixed_token.c
varnish-cache/lib/libvcl/vcc_gen_fixed_token.tcl

index 8973590bb2795f5cfeebde37ffebe136d3e9cb20..98c5424be1559a1758784933e23ceee4818610d5 100644 (file)
@@ -21,6 +21,7 @@ struct VCL_conf {
         struct vrt_ref  *ref;
         unsigned        nref;
         unsigned        busy;
+        unsigned        discard;
         
        unsigned        nsrc;
        const char      **srcname;
index d49f2656baa5d8e0d26eb0dafd7f9d733f6c68c5..8fd186ccea3e5cebaaad73618e20a071317dec2b 100644 (file)
@@ -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");
index 47e0679a20d3dec6063d6a7719272b0ba65ba59a..20c20d115ec534a00c035f756c1112460edc4a59 100755 (executable)
@@ -137,6 +137,7 @@ puts $fo {  unsigned        magic;
         struct vrt_ref  *ref;
         unsigned        nref;
         unsigned        busy;
+        unsigned        discard;
         
        unsigned        nsrc;
        const char      **srcname;