From 06a364bb39fed141a90036bfd140806c94028444 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 26 Feb 2009 12:53:28 +0000 Subject: [PATCH] Add the two new stevedore entrypoints: ->object() is (to be) called when a cached object is ready ->close() is (to be) called on orderly stops of the worker. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3830 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/stevedore.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/varnish-cache/bin/varnishd/stevedore.h b/varnish-cache/bin/varnishd/stevedore.h index ed052a70..d07125ea 100644 --- a/varnish-cache/bin/varnishd/stevedore.h +++ b/varnish-cache/bin/varnishd/stevedore.h @@ -34,12 +34,15 @@ struct stevedore; struct sess; struct iovec; +struct object; typedef void storage_init_f(struct stevedore *, int ac, char * const *av); typedef void storage_open_f(const struct stevedore *); typedef struct storage *storage_alloc_f(struct stevedore *, size_t size); typedef void storage_trim_f(const struct storage *, size_t size); typedef void storage_free_f(struct storage *); +typedef void storage_object_f(struct object *); +typedef void storage_close_f(const struct stevedore *); struct stevedore { unsigned magic; @@ -50,6 +53,8 @@ struct stevedore { storage_alloc_f *alloc; storage_trim_f *trim; storage_free_f *free; + storage_object_f *object; + storage_close_f *close; /* private fields */ void *priv; -- 2.39.5