[master] 96e87339d vsl: Expose vsl_tag_is_masked

Nils Goroll nils.goroll at uplex.de
Mon May 22 13:11:06 UTC 2023


commit 96e87339d1affb6db94d70ac7d0ec1a528c58c76
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date:   Wed May 10 16:58:19 2023 +0200

    vsl: Expose vsl_tag_is_masked

diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h
index 6e73158f8..b6af25537 100644
--- a/bin/varnishd/cache/cache.h
+++ b/bin/varnishd/cache/cache.h
@@ -783,6 +783,7 @@ void VSLbs(struct vsl_log *, enum VSL_tag_e tag, const struct strands *s);
 void VSLb_ts(struct vsl_log *, const char *event, vtim_real first,
     vtim_real *pprev, vtim_real now);
 void VSLb_bin(struct vsl_log *, enum VSL_tag_e, ssize_t, const void*);
+int VSL_tag_is_masked(enum VSL_tag_e tag);
 
 static inline void
 VSLb_ts_req(struct req *req, const char *event, vtim_real now)
diff --git a/bin/varnishd/cache/cache_shmlog.c b/bin/varnishd/cache/cache_shmlog.c
index b3b2e213d..67150f69a 100644
--- a/bin/varnishd/cache/cache_shmlog.c
+++ b/bin/varnishd/cache/cache_shmlog.c
@@ -130,6 +130,12 @@ vsl_tag_is_masked(enum VSL_tag_e tag)
 	return (*bm & b);
 }
 
+int
+VSL_tag_is_masked(enum VSL_tag_e tag)
+{
+	return (vsl_tag_is_masked(tag));
+}
+
 /*--------------------------------------------------------------------
  * Lay down a header fields, and return pointer to the next record
  */


More information about the varnish-commit mailing list