r229 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sat Jun 24 23:09:07 CEST 2006


Author: phk
Date: 2006-06-24 23:09:07 +0200 (Sat, 24 Jun 2006)
New Revision: 229

Modified:
   trunk/varnish-cache/bin/varnishd/cache.h
Log:
Autogenerate prototypes for method calling functions


Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h	2006-06-24 21:07:18 UTC (rev 228)
+++ trunk/varnish-cache/bin/varnishd/cache.h	2006-06-24 21:09:07 UTC (rev 229)
@@ -188,10 +188,13 @@
 void RelVCL(struct VCL_conf *vc);
 struct VCL_conf *GetVCL(void);
 int CVCL_Load(const char *fn, const char *name);
-void VCL_recv_method(struct sess *);
-void VCL_hit_method(struct sess *);
-void VCL_miss_method(struct sess *);
-void VCL_fetch_method(struct sess *);
+
+#define VCL_RET_MAC(l,u,b)
+#define VCL_MET_MAC(l,u,b) void VCL_##l##_method(struct sess *);
+#include "vcl_returns.h"
+#undef VCL_MET_MAC
+#undef VCL_RET_MAC
+
 #ifdef CLI_PRIV_H
 cli_func_t	cli_func_config_list;
 cli_func_t	cli_func_config_load;




More information about the varnish-commit mailing list