From d26e9d14de69feb23cf59a083c2a8ecfef60b3b7 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 11 Jul 2006 13:31:14 +0000 Subject: [PATCH] Add enum for major procesing steps git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@427 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache.h | 9 +++++++++ varnish-cache/bin/varnishd/steps.h | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 varnish-cache/bin/varnishd/steps.h diff --git a/varnish-cache/bin/varnishd/cache.h b/varnish-cache/bin/varnishd/cache.h index 8ab94f67..db912b2e 100644 --- a/varnish-cache/bin/varnishd/cache.h +++ b/varnish-cache/bin/varnishd/cache.h @@ -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 index 00000000..e1c3b856 --- /dev/null +++ b/varnish-cache/bin/varnishd/steps.h @@ -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) -- 2.39.5