]> err.no Git - varnish/commitdiff
Add a session callback pointer to struct sess.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 4 Apr 2006 07:27:06 +0000 (07:27 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 4 Apr 2006 07:27:06 +0000 (07:27 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@107 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/include/vcl_lang.h

index a57f3a0b94915f48bf51c8fc51580bc415ea8e44..1f6f29dd0f46c0ced9a368757545e8d13f66db29 100644 (file)
@@ -8,6 +8,9 @@
 /* XXX: This include is bad.  The VCL compiler shouldn't know about it. */
 #include <sys/queue.h>
 
+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;