Commit 17b30b61 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a VLU_Reset() function

parent 32f503ef
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment