From: phk Date: Tue, 4 Apr 2006 07:27:06 +0000 (+0000) Subject: Add a session callback pointer to struct sess. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dc8167f74ddbcd82576d7bdabd9325da9419056;p=varnish Add a session callback pointer to struct sess. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@107 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/include/vcl_lang.h b/varnish-cache/include/vcl_lang.h index a57f3a0b..1f6f29dd 100644 --- a/varnish-cache/include/vcl_lang.h +++ b/varnish-cache/include/vcl_lang.h @@ -8,6 +8,9 @@ /* XXX: This include is bad. The VCL compiler shouldn't know about it. */ #include +struct sess; +typedef void sesscb_f(struct sess *sp); + struct vcl_ref { unsigned line; unsigned pos; @@ -59,6 +62,8 @@ struct sess { TAILQ_ENTRY(sess) list; + sesscb_f *sesscb; + struct backend *backend; struct VCL_conf *vcl;