]> err.no Git - varnish/commit
Put more meat on the stevedore (storage backend) interface:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 13 Jun 2006 07:57:32 +0000 (07:57 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 13 Jun 2006 07:57:32 +0000 (07:57 +0000)
commit8922e44832592354f846181b2aae9cbb4393f816
tree9ea3c4f0e649bb21398a7907feb7e4a069737041
parent04ad81aa91b0bc52be17af8fb098f0e8ac21699d
Put more meat on the stevedore (storage backend) interface:

Pull the struct definition into _stevedore.h and include this from
cache.h and mgt.h, they both need to be able to see it.

Add the stevedore pointer as an argument to the stevedore alloc function
so multiple stevedores is possible later on.

Add the stevedore pointer to the storage object, so freeing it again is
possible.

Add -s argument processing to select a given stevedore, call it's ->init
method and pass the stevedore in the heritage.

In the cache process pick stevedore out from heritage, call its open method.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@170 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/_stevedore.h [new file with mode: 0644]
varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_fetch.c
varnish-cache/bin/varnishd/cache_main.c
varnish-cache/bin/varnishd/heritage.h
varnish-cache/bin/varnishd/mgt.h
varnish-cache/bin/varnishd/storage_malloc.c
varnish-cache/bin/varnishd/varnishd.c