Basic implementation of zipflow.subreq

It does not have any effect yet
parent 052605f3
...@@ -68,6 +68,7 @@ struct zipflow_request { ...@@ -68,6 +68,7 @@ struct zipflow_request {
#define ZIPFLOW_REQUEST_MAGIC 0xaa175160 #define ZIPFLOW_REQUEST_MAGIC 0xaa175160
unsigned bundle:1; unsigned bundle:1;
char level; char level;
VCL_STRING url;
VCL_STRING name; VCL_STRING name;
unsigned mode; unsigned mode;
uint32_t atime, mtime; uint32_t atime, mtime;
...@@ -170,10 +171,16 @@ get_zipflow_request(VRT_CTX) ...@@ -170,10 +171,16 @@ get_zipflow_request(VRT_CTX)
VCL_VOID VCL_VOID
vmod_subreq(VRT_CTX, VCL_STRING url) vmod_subreq(VRT_CTX, VCL_STRING url)
{ {
struct zipflow_request *zfr;
struct zipflow_top *zft;
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC); CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
AN(ctx->method & (VCL_MET_TASK_C));
// XXX TODO zft = get_zipflow_top(ctx);
(void) url; zfr = new_zipflow_request(ctx, zft);
zfr->url = url;
} }
VCL_BOOL VCL_BOOL
......
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