Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
05c168ae
Commit
05c168ae
authored
Aug 08, 2019
by
Poul-Henning Kamp
Committed by
Martin Blix Grydeland
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a VLU_Reset() function
parent
418e3365
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
vlu.h
include/vlu.h
+1
-0
vlu.c
lib/libvarnish/vlu.c
+7
-0
No files found.
include/vlu.h
View file @
05c168ae
...
...
@@ -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
);
...
...
lib/libvarnish/vlu.c
View file @
05c168ae
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment