Commit 745c8287 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add two fields to the VSL tag definition, for documentation use.

parent f177a357
...@@ -34,69 +34,74 @@ ...@@ -34,69 +34,74 @@
* *
* XXX: Please add new entries a the end to not break saved log-segments. * XXX: Please add new entries a the end to not break saved log-segments.
* XXX: we can resort them when we have a major release. * XXX: we can resort them when we have a major release.
*
* Arguments:
* Tag-Name
* Short Description (1 line, max ?? chars)
* Long Description (Multi line)
*/ */
SLTM(Debug) SLTM(Debug, "", "")
SLTM(Error) SLTM(Error, "", "")
SLTM(CLI) SLTM(CLI, "", "")
SLTM(StatSess) SLTM(StatSess, "", "")
SLTM(ReqEnd) SLTM(ReqEnd, "", "")
SLTM(SessionOpen) SLTM(SessionOpen, "", "")
SLTM(SessionClose) SLTM(SessionClose, "", "")
SLTM(BackendOpen) SLTM(BackendOpen, "", "")
SLTM(BackendXID) SLTM(BackendXID, "", "")
SLTM(BackendReuse) SLTM(BackendReuse, "", "")
SLTM(BackendClose) SLTM(BackendClose, "", "")
SLTM(HttpGarbage) SLTM(HttpGarbage, "", "")
SLTM(Backend) SLTM(Backend, "", "")
SLTM(Length) SLTM(Length, "", "")
SLTM(FetchError) SLTM(FetchError, "", "")
#define SLTH(aa, bb) SLTM(Req##aa) #define SLTH(aa, bb) SLTM(Req##aa, "", "")
#include "tbl/vsl_tags_http.h" #include "tbl/vsl_tags_http.h"
#undef SLTH #undef SLTH
#define SLTH(aa, bb) SLTM(Resp##aa) #define SLTH(aa, bb) SLTM(Resp##aa, "", "")
#include "tbl/vsl_tags_http.h" #include "tbl/vsl_tags_http.h"
#undef SLTH #undef SLTH
#define SLTH(aa, bb) SLTM(Bereq##aa) #define SLTH(aa, bb) SLTM(Bereq##aa, "", "")
#include "tbl/vsl_tags_http.h" #include "tbl/vsl_tags_http.h"
#undef SLTH #undef SLTH
#define SLTH(aa, bb) SLTM(Beresp##aa) #define SLTH(aa, bb) SLTM(Beresp##aa, "", "")
#include "tbl/vsl_tags_http.h" #include "tbl/vsl_tags_http.h"
#undef SLTH #undef SLTH
#define SLTH(aa, bb) SLTM(Obj##aa) #define SLTH(aa, bb) SLTM(Obj##aa, "", "")
#include "tbl/vsl_tags_http.h" #include "tbl/vsl_tags_http.h"
#undef SLTH #undef SLTH
SLTM(LostHeader) SLTM(LostHeader, "", "")
SLTM(TTL) SLTM(TTL, "", "")
SLTM(Fetch_Body) SLTM(Fetch_Body, "", "")
SLTM(VCL_acl) SLTM(VCL_acl, "", "")
SLTM(VCL_call) SLTM(VCL_call, "", "")
SLTM(VCL_trace) SLTM(VCL_trace, "", "")
SLTM(VCL_return) SLTM(VCL_return, "", "")
SLTM(VCL_error) SLTM(VCL_error, "", "")
SLTM(ReqStart) SLTM(ReqStart, "", "")
SLTM(Hit) SLTM(Hit, "", "")
SLTM(HitPass) SLTM(HitPass, "", "")
SLTM(ExpBan) SLTM(ExpBan, "", "")
SLTM(ExpKill) SLTM(ExpKill, "", "")
SLTM(WorkThread) SLTM(WorkThread, "", "")
SLTM(ESI_xmlerror) SLTM(ESI_xmlerror, "", "")
SLTM(Hash) SLTM(Hash, "", "")
SLTM(Backend_health) SLTM(Backend_health, "", "")
SLTM(VCL_Debug) SLTM(VCL_Debug, "", "")
SLTM(VCL_Log) SLTM(VCL_Log, "", "")
SLTM(VCL_Error) SLTM(VCL_Error, "", "")
SLTM(Gzip) SLTM(Gzip, "", "")
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
*/ */
enum VSL_tag_e { enum VSL_tag_e {
SLT_Bogus = 0, SLT_Bogus = 0,
#define SLTM(foo) SLT_##foo, #define SLTM(foo,sdesc,ldesc) SLT_##foo,
#include "tbl/vsl_tags.h" #include "tbl/vsl_tags.h"
#undef SLTM #undef SLTM
SLT_Reserved = 255 SLT_Reserved = 255
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
const char *VSL_tags[256] = { const char *VSL_tags[256] = {
# define SLTM(foo) [SLT_##foo] = #foo, # define SLTM(foo,sdesc,ldesc) [SLT_##foo] = #foo,
# include "tbl/vsl_tags.h" # include "tbl/vsl_tags.h"
# undef SLTM # undef SLTM
}; };
......
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