r3830 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Thu Feb 26 13:53:28 CET 2009


Author: phk
Date: 2009-02-26 13:53:28 +0100 (Thu, 26 Feb 2009)
New Revision: 3830

Modified:
   trunk/varnish-cache/bin/varnishd/stevedore.h
Log:
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.



Modified: trunk/varnish-cache/bin/varnishd/stevedore.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/stevedore.h	2009-02-26 12:22:50 UTC (rev 3829)
+++ trunk/varnish-cache/bin/varnishd/stevedore.h	2009-02-26 12:53:28 UTC (rev 3830)
@@ -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 @@
 	storage_alloc_f		*alloc;
 	storage_trim_f		*trim;
 	storage_free_f		*free;
+	storage_object_f	*object;
+	storage_close_f		*close;
 
 	/* private fields */
 	void			*priv;



More information about the varnish-commit mailing list