Skip to content
Permalink
Browse files

Add a VLU_Reset() function

  • Loading branch information...
bsdphk committed Aug 8, 2019
1 parent 32f503e commit 17b30b617831737896650027eb9dff5f06478c36
Showing with 8 additions and 0 deletions.
  1. +1 −0 include/vlu.h
  2. +7 −0 lib/libvarnish/vlu.c
@@ -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);
@@ -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)
{

0 comments on commit 17b30b6

Please sign in to comment.
You can’t perform that action at this time.