Okey... I started to add some things that looked ok to me. But I have a feeling
that I cannot use "string". Here is what I did:
On line 551 in vcc_fixed_token.c:
+ vsb_cat(sb, "string VRT_r_reqend(const struct sess *);\n");
On line 208-211 in vcc_gen_obj.tcl:
+ { reqend RO STRING
+ {deliver}
+ "const struct sess *"
+ }
On line 224-230 in vcc_obj.c:
+ { "reqend", STRING, 15,
+ "VRT_r_now(sp)",
+ NULL,
+ V_RO,
+ 0,
+ VCL_MET_DELIVER
+},
On line 532-539 in cache_vrt.c:
+ /* REQEND */
+ string
+ VRT_r_reqend(const struct sess *sp)
+ {
+ (void)sp;
+ return ("Test");
+ }
Seems a little bit easy to be allright :P
Any tip? ("stop wasting your time in a code you cant understand" ;)
/ Erik
Original Message -----------------------
It's not too terrible, but not entirely simple either.
You need to add an VCL object (see the lib/libvcl/*.tcl files, then
add the necessary stuff in the .c files)
Then you need to at the VCL RunTime ("VRT") functions in cache_vrt.c.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc