[prev in list] [next in list] [prev in thread] [next in thread]
List: varnish-commit
Subject: [master] 17b30b617 Add a VLU_Reset() function
From: Poul-Henning Kamp <phk () FreeBSD ! org>
Date: 2019-08-13 11:10:10
Message-ID: 20190813111010.5A894BE560 () lists ! varnish-cache ! org
[Download RAW message or body]
commit 17b30b617831737896650027eb9dff5f06478c36
Author: Poul-Henning Kamp <phk@FreeBSD.org>
Date: Thu Aug 8 08:24:13 2019 +0000
Add a VLU_Reset() function
diff --git a/include/vlu.h b/include/vlu.h
index 47cf705f5..8ce98dd3f 100644
--- a/include/vlu.h
+++ b/include/vlu.h
@@ -34,6 +34,7 @@
typedef int (vlu_f)(void *, const char *);
struct vlu *VLU_New(vlu_f *, void *, unsigned);
+void VLU_Reset(struct vlu *);
int VLU_Fd(struct vlu *, int);
void VLU_Destroy(struct vlu **);
int VLU_File(int, vlu_f *, void *, unsigned);
diff --git a/lib/libvarnish/vlu.c b/lib/libvarnish/vlu.c
index 536b792d4..7b4eb90db 100644
--- a/lib/libvarnish/vlu.c
+++ b/lib/libvarnish/vlu.c
@@ -72,6 +72,13 @@ VLU_New(vlu_f *func, void *priv, unsigned bufsize)
return (l);
}
+void
+VLU_Reset(struct vlu *l)
+{
+ CHECK_OBJ_NOTNULL(l, LINEUP_MAGIC);
+ l->bufp = 0;
+}
+
void
VLU_Destroy(struct vlu **lp)
{
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic