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
52a745bc
Commit
52a745bc
authored
Sep 15, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce struct storage visibility.
parent
036bd79f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
16 deletions
+19
-16
cache.h
bin/varnishd/cache/cache.h
+0
-16
cache_cli.c
bin/varnishd/cache/cache_cli.c
+1
-0
cache_req_body.c
bin/varnishd/cache/cache_req_body.c
+1
-0
storage.h
bin/varnishd/storage/storage.h
+17
-0
No files found.
bin/varnishd/cache/cache.h
View file @
52a745bc
...
...
@@ -384,22 +384,6 @@ struct lru {
unsigned
n_objcore
;
};
/* Storage -----------------------------------------------------------*/
struct
storage
{
unsigned
magic
;
#define STORAGE_MAGIC 0x1a4e51c0
VTAILQ_ENTRY
(
storage
)
list
;
struct
stevedore
*
stevedore
;
void
*
priv
;
unsigned
char
*
ptr
;
unsigned
len
;
unsigned
space
;
};
/* Stored object -----------------------------------------------------
* Pointer to a stored object, and the methods it supports
*/
...
...
bin/varnishd/cache/cache_cli.c
View file @
52a745bc
...
...
@@ -48,6 +48,7 @@
#include "vcli_common.h"
#include "vcli_priv.h"
#include "vcli_serve.h"
#include "storage/storage.h" // struct storage
pthread_t
cli_thread
;
static
struct
lock
cli_mtx
;
...
...
bin/varnishd/cache/cache_req_body.c
View file @
52a745bc
...
...
@@ -35,6 +35,7 @@
#include "cache.h"
#include "vtim.h"
#include "storage/storage.h"
/*----------------------------------------------------------------------
* Iterate over the req.body.
...
...
bin/varnishd/storage/storage.h
View file @
52a745bc
...
...
@@ -39,6 +39,23 @@ struct objcore;
struct
worker
;
struct
lru
;
/* Storage -----------------------------------------------------------*/
struct
storage
{
unsigned
magic
;
#define STORAGE_MAGIC 0x1a4e51c0
VTAILQ_ENTRY
(
storage
)
list
;
struct
stevedore
*
stevedore
;
void
*
priv
;
unsigned
char
*
ptr
;
unsigned
len
;
unsigned
space
;
};
typedef
void
storage_init_f
(
struct
stevedore
*
,
int
ac
,
char
*
const
*
av
);
typedef
void
storage_open_f
(
const
struct
stevedore
*
);
typedef
struct
storage
*
storage_alloc_f
(
struct
stevedore
*
,
size_t
size
);
...
...
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