majority of the cache_vrt_esi.c file is no longer "VRT" relevant.
Move the one function which is VRT to cache_vrt.c and rename
cache_vrt_esi.c to cache_esi.c
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3839
d4fa192b-c00b-0410-8231-
f00ffab90ce4
cache_dir_random.c \
cache_dir_round_robin.c \
cache_dir_simple.c \
+ cache_esi.c \
cache_expire.c \
cache_fetch.c \
cache_hash.c \
cache_vary.c \
cache_vcl.c \
cache_vrt.c \
- cache_vrt_esi.c \
cache_vrt_re.c \
cache_ws.c \
hash_classic.c \
/*--------------------------------------------------------------------*/
-void
-VRT_ESI(struct sess *sp)
-{
- CHECK_OBJ_NOTNULL(sp->bereq, BEREQ_MAGIC);
-
- if (sp->cur_method != VCL_MET_FETCH) {
- /* XXX: we should catch this at compile time */
- WSP(sp, SLT_VCL_error,
- "esi can only be called from vcl_fetch");
- return;
- }
-
- sp->bereq->do_esi = 1;
-}
-
-
void
ESI_Parse(struct sess *sp)
{
/*--------------------------------------------------------------------*/
+void
+VRT_ESI(struct sess *sp)
+{
+ CHECK_OBJ_NOTNULL(sp->bereq, BEREQ_MAGIC);
+
+ if (sp->cur_method != VCL_MET_FETCH) {
+ /* XXX: we should catch this at compile time */
+ WSP(sp, SLT_VCL_error,
+ "esi can only be called from vcl_fetch");
+ return;
+ }
+
+ sp->bereq->do_esi = 1;
+}
+
+/*--------------------------------------------------------------------*/
+
/*lint -e{818} sp could be const */
void
VRT_panic(struct sess *sp, const char *str, ...)