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
95b5819d
Commit
95b5819d
authored
Dec 10, 2020
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vsc: New VSC_IsRaw() function in the API
parent
9f04dd40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
vsc.h
include/vapi/vsc.h
+5
-0
libvarnishapi.map
lib/libvarnishapi/libvarnishapi.map
+8
-0
vsc.c
lib/libvarnishapi/vsc.c
+7
-0
No files found.
include/vapi/vsc.h
View file @
95b5819d
...
...
@@ -161,6 +161,11 @@ const struct VSC_level_desc *VSC_ChangeLevel(const struct VSC_level_desc*, int);
* Change a level up or down.
*/
unsigned
VSC_IsRaw
(
const
struct
vsc
*
);
/*
* Returns zero if gauges are adjusted by VSC_Value().
*/
static
inline
uint64_t
VSC_Value
(
const
struct
VSC_point
*
const
pt
)
{
...
...
lib/libvarnishapi/libvarnishapi.map
View file @
95b5819d
...
...
@@ -195,3 +195,11 @@ LIBVARNISHAPI_2.5 { /* 2020-09-15 release */
local:
*;
};
LIBVARNISHAPI_2.6 { /* 2020-03-15 release */
global:
# vsc.c
VSC_IsRaw;
local:
*;
};
lib/libvarnishapi/vsc.c
View file @
95b5819d
...
...
@@ -191,6 +191,13 @@ VSC_Arg(struct vsc *vsc, char arg, const char *opt)
}
}
unsigned
VSC_IsRaw
(
const
struct
vsc
*
vsc
)
{
CHECK_OBJ_NOTNULL
(
vsc
,
VSC_MAGIC
);
return
(
vsc
->
raw
);
}
/*--------------------------------------------------------------------
*/
...
...
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