[master] eb50758 Use VCL_BACKEND type

Poul-Henning Kamp phk at FreeBSD.org
Thu Apr 26 21:18:12 UTC 2018


commit eb507582e77a83e995a727961ade2673be3efac2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Apr 26 18:48:23 2018 +0000

    Use VCL_BACKEND type

diff --git a/bin/varnishd/cache/cache_director.h b/bin/varnishd/cache/cache_director.h
index 3e502ec..00de48e 100644
--- a/bin/varnishd/cache/cache_director.h
+++ b/bin/varnishd/cache/cache_director.h
@@ -42,25 +42,22 @@ struct vcldir;
 typedef VCL_BOOL vdi_healthy_f(VRT_CTX, VCL_BACKEND, VCL_TIME *);
 typedef VCL_BACKEND vdi_resolve_f(VRT_CTX, VCL_BACKEND);
 
-typedef int vdi_gethdrs_f(const struct director *, struct worker *,
-    struct busyobj *);
-typedef int vdi_getbody_f(const struct director *, struct worker *,
-    struct busyobj *);
-typedef const struct suckaddr *vdi_getip_f(const struct director *,
+typedef int vdi_gethdrs_f(VCL_BACKEND, struct worker *, struct busyobj *);
+typedef int vdi_getbody_f(VCL_BACKEND, struct worker *, struct busyobj *);
+typedef const struct suckaddr *vdi_getip_f(VCL_BACKEND,
     struct worker *, struct busyobj *);
-typedef void vdi_finish_f(const struct director *, struct worker *,
-    struct busyobj *);
+typedef void vdi_finish_f(VCL_BACKEND, struct worker *, struct busyobj *);
 
-typedef enum sess_close vdi_http1pipe_f(const struct director *, struct req *,
+typedef enum sess_close vdi_http1pipe_f(VCL_BACKEND, struct req *,
     struct busyobj *);
 
-typedef void vdi_event_f(const struct director *, enum vcl_event_e);
+typedef void vdi_event_f(VCL_BACKEND, enum vcl_event_e);
 
-typedef void vdi_destroy_f(const struct director *);
+typedef void vdi_destroy_f(VCL_BACKEND);
 
-typedef void vdi_panic_f(const struct director *, struct vsb *);
+typedef void vdi_panic_f(VCL_BACKEND, struct vsb *);
 
-typedef void vdi_list_f(const struct director *, struct vsb *, int, int);
+typedef void vdi_list_f(VCL_BACKEND, struct vsb *, int, int);
 
 struct director_methods {
 	unsigned			magic;


More information about the varnish-commit mailing list