From dc79de9ce4d4ba1570c5e04e1644511c32e6fd92 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 28 Sep 2007 13:04:53 +0000 Subject: [PATCH] Move the WS_ prototypes down where they belong. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2053 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache.h b/varnish-cache/bin/varnishd/cache.h index c06df28e..eb6c7ba2 100644 --- a/varnish-cache/bin/varnishd/cache.h +++ b/varnish-cache/bin/varnishd/cache.h @@ -90,14 +90,6 @@ struct ws { char *r; /* (R)eserved length */ }; -void WS_Init(struct ws *ws, void *space, unsigned len); -unsigned WS_Reserve(struct ws *ws, unsigned bytes); -void WS_Release(struct ws *ws, unsigned bytes); -void WS_ReleaseP(struct ws *ws, char *ptr); -void WS_Assert(const struct ws *ws); -void WS_Reset(struct ws *ws); -char *WS_Alloc(struct ws *ws, unsigned bytes); - /*-------------------------------------------------------------------- * HTTP Request/Response/Header handling structure. */ @@ -554,6 +546,16 @@ cli_func_t cli_func_config_use; cli_func_t cli_func_dump_pool; #endif +/* cache_ws.c */ + +void WS_Init(struct ws *ws, void *space, unsigned len); +unsigned WS_Reserve(struct ws *ws, unsigned bytes); +void WS_Release(struct ws *ws, unsigned bytes); +void WS_ReleaseP(struct ws *ws, char *ptr); +void WS_Assert(const struct ws *ws); +void WS_Reset(struct ws *ws); +char *WS_Alloc(struct ws *ws, unsigned bytes); + /* rfc2616.c */ int RFC2616_cache_policy(const struct sess *sp, const struct http *hp); -- 2.39.5