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
53ca9ec5
Commit
53ca9ec5
authored
Jun 09, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove VSC_Get(), it is not useful and it was never exposed in the
.map file anyway.
parent
53234f7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
37 deletions
+0
-37
vsc.h
include/vapi/vsc.h
+0
-18
vsc.c
lib/libvarnishapi/vsc.c
+0
-19
No files found.
include/vapi/vsc.h
View file @
53ca9ec5
...
...
@@ -53,24 +53,6 @@ int VSC_Arg(struct vsm *vd, int arg, const char *opt);
* 1 Handled.
*/
void
*
VSC_Get
(
struct
vsm
*
vd
,
struct
VSM_fantom
*
fantom
,
const
char
*
type
,
const
char
*
ident
);
/*
* Looks up the given VSC type and identifier. If fantom is
* non-NULL, it can if successful later be used with
* VSM_StillValid.
*
* Arguments:
* vd: The vsm context
* fantom: Pointer to a fantom. Can be NULL.
* type: The type of the counter segment
* ident: The identifier of the counter segment
*
* Return values:
* NULL: Failure
* non-NULL: A void pointer to the stats structure.
*/
struct
VSC_level_desc
;
struct
VSC_type_desc
;
struct
VSC_section
;
...
...
lib/libvarnishapi/vsc.c
View file @
53ca9ec5
...
...
@@ -226,25 +226,6 @@ VSC_Arg(struct vsm *vd, int arg, const char *opt)
}
}
/*--------------------------------------------------------------------
*/
void
*
VSC_Get
(
struct
vsm
*
vd
,
struct
VSM_fantom
*
fantom
,
const
char
*
type
,
const
char
*
ident
)
{
struct
VSM_fantom
f2
=
VSM_FANTOM_NULL
;
if
(
fantom
==
NULL
)
fantom
=
&
f2
;
if
(
VSM_invalid
==
VSM_StillValid
(
vd
,
fantom
)
&&
!
VSM_Get
(
vd
,
fantom
,
VSC_CLASS
,
type
,
ident
))
return
(
NULL
);
AZ
(
VSM_Map
(
vd
,
fantom
));
AN
(
fantom
->
b
);
return
((
void
*
)((
char
*
)
fantom
->
b
+
8
));
}
/*--------------------------------------------------------------------*/
static
struct
vsc_vf
*
...
...
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