From a00c81320ddf331d809d8360a3e7c0358ef14487 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 7 Jul 2008 20:26:58 +0000 Subject: [PATCH] Move backend stuff to the correct .h file git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2888 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_compile.h | 9 +++++++++ varnish-cache/lib/libvcl/vcc_priv.h | 17 ----------------- 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/varnish-cache/lib/libvcl/vcc_compile.h b/varnish-cache/lib/libvcl/vcc_compile.h index f638c3e0..fddbeaa8 100644 --- a/varnish-cache/lib/libvcl/vcc_compile.h +++ b/varnish-cache/lib/libvcl/vcc_compile.h @@ -158,8 +158,14 @@ void vcc_Cond_Ip(const struct var *vp, struct tokenlist *tl); void vcc_ParseAction(struct tokenlist *tl); /* vcc_backend.c */ +struct fld_spec; void vcc_ParseBackend(struct tokenlist *tl); void vcc_ParseDirector(struct tokenlist *tl); +struct fld_spec * vcc_FldSpec(struct tokenlist *tl, const char *first, ...); +void vcc_ResetFldSpec(struct fld_spec *f); +void vcc_IsField(struct tokenlist *tl, struct token **t, struct fld_spec *fs); +int vcc_FieldsOk(struct tokenlist *tl, const struct fld_spec *fs); +void vcc_ParseBackendHost(struct tokenlist *tl, int *nbr, const struct token *name, const char *qual, int serial); /* vcc_compile.c */ extern struct method method_tab[]; @@ -173,6 +179,9 @@ int IsMethod(const struct token *t); void TlFree(struct tokenlist *tl, void *p); void *TlAlloc(struct tokenlist *tl, unsigned len); +/* vcc_dir_random.c */ +void vcc_ParseRandomDirector(struct tokenlist *tl, struct token *t_dir); + /* vcc_obj.c */ extern struct var vcc_vars[]; diff --git a/varnish-cache/lib/libvcl/vcc_priv.h b/varnish-cache/lib/libvcl/vcc_priv.h index 26d468c4..91da4cfe 100644 --- a/varnish-cache/lib/libvcl/vcc_priv.h +++ b/varnish-cache/lib/libvcl/vcc_priv.h @@ -34,8 +34,6 @@ #include "vcc_token_defs.h" struct vsb; -struct tokenlist; -struct token; #define isident1(c) (isalpha(c)) #define isident(c) (isalpha(c) || isdigit(c) || (c) == '_' || (c) == '-') @@ -46,18 +44,3 @@ void vcl_init_tnames(void); void vcl_output_lang_h(struct vsb *sb); #define PF(t) (int)((t)->e - (t)->b), (t)->b - -/* vcc_backend.c */ -struct fld_spec; -struct fld_spec * vcc_FldSpec(struct tokenlist *tl, const char *first, ...); -void vcc_ResetFldSpec(struct fld_spec *f); -void vcc_IsField(struct tokenlist *tl, struct token **t, struct fld_spec *fs); -int vcc_FieldsOk(struct tokenlist *tl, const struct fld_spec *fs); -void vcc_ParseBackendHost(struct tokenlist *tl, int *nbh, const struct token *name, const char *qual, int serial); - - - - -/* vcc_dir_random.c */ -void vcc_ParseRandomDirector(struct tokenlist *tl, struct token *t_dir); - -- 2.39.5