Commit aff259bc authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Move struct vbc to cache_backend.h

parent e97567d4
......@@ -91,26 +91,27 @@ enum {
HTTP_HDR_FIRST,
};
struct iovec;
struct SHA256Context;
struct VSC_C_lck;
struct ban;
struct busyobj;
struct cli;
struct exp;
struct vsb;
struct sess;
struct cli_proto;
struct director;
struct exp;
struct iovec;
struct objcore;
struct object;
struct objhead;
struct objcore;
struct busyobj;
struct storage;
struct pool;
struct sess;
struct sesspool;
struct storage;
struct vbc;
struct vef_priv;
struct vrt_backend;
struct cli_proto;
struct ban;
struct SHA256Context;
struct VSC_C_lck;
struct vsb;
struct waitinglist;
struct vef_priv;
struct pool;
#define DIGEST_LEN 32
......@@ -627,28 +628,6 @@ struct sess {
#endif
};
/* -------------------------------------------------------------------*/
/* Backend connection */
struct vbc {
unsigned magic;
#define VBC_MAGIC 0x0c5e6592
VTAILQ_ENTRY(vbc) list;
struct backend *backend;
struct vdi_simple *vdis;
unsigned vsl_id;
int fd;
struct sockaddr_storage *addr;
socklen_t addrlen;
uint8_t recycled;
/* Timeouts */
double first_byte_timeout;
double between_bytes_timeout;
};
/* Prototypes etc ----------------------------------------------------*/
/* cache_acceptor.c */
......
......@@ -134,6 +134,28 @@ struct backend {
struct VSC_C_vbe *vsc;
};
/* -------------------------------------------------------------------*/
/* Backend connection */
struct vbc {
unsigned magic;
#define VBC_MAGIC 0x0c5e6592
VTAILQ_ENTRY(vbc) list;
struct backend *backend;
struct vdi_simple *vdis;
unsigned vsl_id;
int fd;
struct sockaddr_storage *addr;
socklen_t addrlen;
uint8_t recycled;
/* Timeouts */
double first_byte_timeout;
double between_bytes_timeout;
};
/* cache_backend.c */
void VBE_ReleaseConn(struct vbc *vc);
struct backend *vdi_get_backend_if_simple(const struct director *d);
......
......@@ -40,6 +40,7 @@
#include "cache.h"
#include "cache_backend.h" // struct vbc
#include "hash_slinger.h" // objhead
#include "vcli.h"
#include "vcli_common.h"
......
......@@ -36,6 +36,7 @@
#include "cache.h"
#include "cache_backend.h"
#include "vcli_priv.h"
#include "vct.h"
#include "vtcp.h"
......
......@@ -36,6 +36,7 @@
#include "cache.h"
#include "cache_backend.h"
#include "vtcp.h"
#include "vtim.h"
......
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