[master] 6d32a53d3 vrt: Move hdr_t definition to vrt.h
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Apr 14 15:47:06 UTC 2025
commit 6d32a53d33e6948cd7c1e9561df09250cbe1621c
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Apr 1 18:10:14 2025 +0200
vrt: Move hdr_t definition to vrt.h
diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h
index a9b81db5b..3b01a7ac7 100644
--- a/bin/varnishd/cache/cache.h
+++ b/bin/varnishd/cache/cache.h
@@ -83,8 +83,6 @@ struct body_status {
typedef const struct body_status *body_status_t;
-typedef const char *hdr_t;
-
/*--------------------------------------------------------------------*/
struct stream_close {
diff --git a/include/vrt.h b/include/vrt.h
index 49e3f5960..1a126e3e1 100644
--- a/include/vrt.h
+++ b/include/vrt.h
@@ -693,9 +693,11 @@ enum gethdr_e {
HDR_BERESP
};
+typedef const char *hdr_t;
+
struct gethdr_s {
enum gethdr_e where;
- const char *what;
+ hdr_t what;
};
VCL_HTTP VRT_selecthttp(VRT_CTX, enum gethdr_e);
More information about the varnish-commit
mailing list