Commit 0cc78a6d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

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: http://www.varnish-cache.org/svn/trunk/varnish-cache@3830 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c4d93f82
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment