Commit 52a745bc authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Reduce struct storage visibility.

parent 036bd79f
......@@ -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
*/
......
......@@ -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;
......
......@@ -35,6 +35,7 @@
#include "cache.h"
#include "vtim.h"
#include "storage/storage.h"
/*----------------------------------------------------------------------
* Iterate over the req.body.
......
......@@ -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);
......
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