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 @@
*
* 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.
*
* Arguments:
* Tag-Name
* Short Description (1 line, max ?? chars)
* Long Description (Multi line)
*/
SLTM(Debug)
SLTM(Error)
SLTM(CLI)
SLTM(StatSess)
SLTM(ReqEnd)
SLTM(SessionOpen)
SLTM(SessionClose)
SLTM(BackendOpen)
SLTM(BackendXID)
SLTM(BackendReuse)
SLTM(BackendClose)
SLTM(HttpGarbage)
SLTM(Backend)
SLTM(Length)
SLTM(Debug, "", "")
SLTM(Error, "", "")
SLTM(CLI, "", "")
SLTM(StatSess, "", "")
SLTM(ReqEnd, "", "")
SLTM(SessionOpen, "", "")
SLTM(SessionClose, "", "")
SLTM(BackendOpen, "", "")
SLTM(BackendXID, "", "")
SLTM(BackendReuse, "", "")
SLTM(BackendClose, "", "")
SLTM(HttpGarbage, "", "")
SLTM(Backend, "", "")
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"
#undef SLTH
#define SLTH(aa, bb) SLTM(Resp##aa)
#define SLTH(aa, bb) SLTM(Resp##aa, "", "")
#include "tbl/vsl_tags_http.h"
#undef SLTH
#define SLTH(aa, bb) SLTM(Bereq##aa)
#define SLTH(aa, bb) SLTM(Bereq##aa, "", "")
#include "tbl/vsl_tags_http.h"
#undef SLTH
#define SLTH(aa, bb) SLTM(Beresp##aa)
#define SLTH(aa, bb) SLTM(Beresp##aa, "", "")
#include "tbl/vsl_tags_http.h"
#undef SLTH
#define SLTH(aa, bb) SLTM(Obj##aa)
#define SLTH(aa, bb) SLTM(Obj##aa, "", "")
#include "tbl/vsl_tags_http.h"
#undef SLTH
SLTM(LostHeader)
SLTM(LostHeader, "", "")
SLTM(TTL)
SLTM(Fetch_Body)
SLTM(VCL_acl)
SLTM(VCL_call)
SLTM(VCL_trace)
SLTM(VCL_return)
SLTM(VCL_error)
SLTM(ReqStart)
SLTM(Hit)
SLTM(HitPass)
SLTM(ExpBan)
SLTM(ExpKill)
SLTM(WorkThread)
SLTM(TTL, "", "")
SLTM(Fetch_Body, "", "")
SLTM(VCL_acl, "", "")
SLTM(VCL_call, "", "")
SLTM(VCL_trace, "", "")
SLTM(VCL_return, "", "")
SLTM(VCL_error, "", "")
SLTM(ReqStart, "", "")
SLTM(Hit, "", "")
SLTM(HitPass, "", "")
SLTM(ExpBan, "", "")
SLTM(ExpKill, "", "")
SLTM(WorkThread, "", "")
SLTM(ESI_xmlerror)
SLTM(ESI_xmlerror, "", "")
SLTM(Hash)
SLTM(Hash, "", "")
SLTM(Backend_health)
SLTM(Backend_health, "", "")
SLTM(VCL_Debug)
SLTM(VCL_Log)
SLTM(VCL_Error)
SLTM(VCL_Debug, "", "")
SLTM(VCL_Log, "", "")
SLTM(VCL_Error, "", "")
SLTM(Gzip)
SLTM(Gzip, "", "")
......@@ -73,7 +73,7 @@
*/
enum VSL_tag_e {
SLT_Bogus = 0,
#define SLTM(foo) SLT_##foo,
#define SLTM(foo,sdesc,ldesc) SLT_##foo,
#include "tbl/vsl_tags.h"
#undef SLTM
SLT_Reserved = 255
......
......@@ -55,7 +55,7 @@
/*--------------------------------------------------------------------*/
const char *VSL_tags[256] = {
# define SLTM(foo) [SLT_##foo] = #foo,
# define SLTM(foo,sdesc,ldesc) [SLT_##foo] = #foo,
# include "tbl/vsl_tags.h"
# 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