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
49445552
Commit
49445552
authored
May 26, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Confine the VSC_C structs to vsc.c
parent
f4ee973b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
common.h
bin/varnishd/common/common.h
+2
-2
common_vsm.c
bin/varnishd/common/common_vsm.c
+3
-1
vsc_int.h
include/vapi/vsc_int.h
+0
-6
vsc.c
lib/libvarnishapi/vsc.c
+6
-0
No files found.
bin/varnishd/common/common.h
View file @
49445552
...
...
@@ -81,14 +81,14 @@ int VCL_TestLoad(const char *);
/* common_vsm.c */
struct
vsm_sc
;
struct
VSC_
C_
main
;
struct
VSC_main
;
struct
vsm_sc
*
VSM_common_new
(
void
*
ptr
,
ssize_t
len
);
void
*
VSM_common_alloc
(
struct
vsm_sc
*
sc
,
ssize_t
size
,
const
char
*
class
,
const
char
*
type
,
const
char
*
ident
);
void
VSM_common_free
(
struct
vsm_sc
*
sc
,
void
*
ptr
);
void
VSM_common_delete
(
struct
vsm_sc
**
sc
);
void
VSM_common_copy
(
struct
vsm_sc
*
to
,
const
struct
vsm_sc
*
from
);
void
VSM_common_cleaner
(
struct
vsm_sc
*
sc
,
struct
VSC_
C_
main
*
stats
);
void
VSM_common_cleaner
(
struct
vsm_sc
*
sc
,
struct
VSC_main
*
stats
);
void
VSM_common_ageupdate
(
const
struct
vsm_sc
*
sc
);
void
*
VSC_Alloc
(
const
char
*
,
size_t
,
size_t
,
const
unsigned
char
*
,
size_t
,
...
...
bin/varnishd/common/common_vsm.c
View file @
49445552
...
...
@@ -45,6 +45,8 @@
#include "vmb.h"
#include "vtim.h"
#include "VSC_main.h"
extern
volatile
struct
params
*
cache_param
;
/*--------------------------------------------------------------------*/
...
...
@@ -165,7 +167,7 @@ VSM_common_new(void *p, ssize_t l)
*/
void
VSM_common_cleaner
(
struct
vsm_sc
*
sc
,
struct
VSC_
C_
main
*
stats
)
VSM_common_cleaner
(
struct
vsm_sc
*
sc
,
struct
VSC_main
*
stats
)
{
double
now
=
VTIM_real
();
struct
vsm_range
*
vr
,
*
vr2
;
...
...
include/vapi/vsc_int.h
View file @
49445552
...
...
@@ -41,9 +41,3 @@ enum VSC_level_e {
/* Forward declare the static vsc type names */
#define VSC_TYPE_F(n,t,l,e,d) extern const char *VSC_type_##n;
#include "tbl/vsc_types.h"
/* Define the vsc type structs */
#define VSC_DO(u,l,t,h) struct VSC_C_##l {
#define VSC_F(n,t,l,s,f,v,d,e) t n;
#define VSC_DONE(u,l,t) };
#include "tbl/vsc_all.h"
lib/libvarnishapi/vsc.c
View file @
49445552
...
...
@@ -51,6 +51,12 @@
#include "vsm_api.h"
/* Define the vsc type structs */
#define VSC_DO(u,l,t,h) struct VSC_C_##l {
#define VSC_F(n,t,l,s,f,v,d,e) t n;
#define VSC_DONE(u,l,t) };
#include "tbl/vsc_all.h"
enum
{
#define VSC_TYPE_F(n,t,l,e,d) \
VSC_type_order_##n,
...
...
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