summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-06-01 13:53:12 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-06-01 13:53:12 +0200
commit59227a861821b2e0e37357c0695f6b3d9f11dd9d (patch)
tree6211c46fb45d462404bfeaa560f98ec2ae37b52a /template.h
parent4b906fe9cf75948ebb600a8734ad440edc741f38 (diff)
downloadrsyslog-59227a861821b2e0e37357c0695f6b3d9f11dd9d.tar.gz
rsyslog-59227a861821b2e0e37357c0695f6b3d9f11dd9d.tar.xz
rsyslog-59227a861821b2e0e37357c0695f6b3d9f11dd9d.zip
experimental commit: facility to generate template via C function
This was a test done to try to generate templates with C code, via a new (potentially to-be-implemented) class of template modules. We have a rough POC inside this code, and it showed around 5% or better speedup. So it semms worth continuing in this direction. Note that this experimental commit works correct, but does any template in the form of $template tpl,=somewhat will lead to fixed template expansion based on the default file format.
Diffstat (limited to 'template.h')
-rw-r--r--template.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/template.h b/template.h
index 71e8b428..9c438159 100644
--- a/template.h
+++ b/template.h
@@ -32,6 +32,7 @@ struct template {
struct template *pNext;
char *pszName;
int iLenName;
+ uchar *tplMod; /* name of template module to use * TODO: replace by ptr to entry point! */
int tpenElements; /* number of elements in templateEntry list */
struct templateEntry *pEntryRoot;
struct templateEntry *pEntryLast;