Commit 95b5819d authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vsc: New VSC_IsRaw() function in the API

parent 9f04dd40
......@@ -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)
{
......
......@@ -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:
*;
};
......@@ -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);
}
/*--------------------------------------------------------------------
*/
......
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