]> err.no Git - varnish/commitdiff
Add enum for major procesing steps
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 11 Jul 2006 13:31:14 +0000 (13:31 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 11 Jul 2006 13:31:14 +0000 (13:31 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@427 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/steps.h [new file with mode: 0644]

index 8ab94f6793b749c0a71929e1667a04ce7375827c..db912b2e78a0de4b055edd63bb77fc9b8100d953 100644 (file)
@@ -18,6 +18,14 @@ struct sess;
 struct object;
 struct objhead;
 
+/*--------------------------------------------------------------------*/
+
+enum step {
+#define STEP(l, u)     STP_##u,
+#include "steps.h"
+#undef STEP
+};
+
 /*--------------------------------------------------------------------
  * HTTP Request/Response/Header handling structure.
  * RSN: struct worker and struct session will have one of these embedded.
@@ -148,6 +156,7 @@ struct sess {
        time_t                  t_req;
        time_t                  t_resp;
 
+       enum step               step;
        unsigned                handling;
 
        TAILQ_ENTRY(sess)       list;
diff --git a/varnish-cache/bin/varnishd/steps.h b/varnish-cache/bin/varnishd/steps.h
new file mode 100644 (file)
index 0000000..e1c3b85
--- /dev/null
@@ -0,0 +1,13 @@
+/* $Id$ */
+
+STEP(recv,     RECV)
+STEP(pipe,     PIPE)
+STEP(pass,     PASS)
+STEP(passbody, PASSBODY)
+STEP(lookup,   LOOKUP)
+STEP(miss,     MISS)
+STEP(hit,      HIT)
+STEP(fetch,    FETCH)
+STEP(deliver,  DELIVER)
+STEP(error,    ERROR)
+STEP(done,     DONE)