diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-18 15:29:41 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-18 15:29:41 +0000 |
commit | fb5606f892184461ba22c030090ec94913e4aeb1 (patch) | |
tree | 6f5aeace4b9484d3921f410e8281a569492ec463 /template.h | |
parent | 9a7c44921d6d17ae577c854f6c9606d5a1a0189e (diff) | |
download | rsyslog-fb5606f892184461ba22c030090ec94913e4aeb1.tar.gz rsyslog-fb5606f892184461ba22c030090ec94913e4aeb1.tar.bz2 rsyslog-fb5606f892184461ba22c030090ec94913e4aeb1.zip |
MsgObjNearlyCompleted
Diffstat (limited to 'template.h')
-rw-r--r-- | template.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -7,6 +7,7 @@ struct template { struct template *pNext; char *pszName; int iLenName; + int tpenElements; /* number of elements in templateEntry list */ struct templateEntry *pEntryRoot; struct templateEntry *pEntryLast; }; @@ -18,14 +19,19 @@ struct templateEntry { struct templateEntry *pNext; enum EntryTypes eEntryType; union { - char *pConstant; /* pointer to constant value */ + struct { + char *pConstant; /* pointer to constant value */ + int iLenConstant; /* its length */ + } constant; char *pPropRepl; /* pointer to property replacer string */ - }; + } data; }; struct template* tplConstruct(void); struct template *tplAddLine(char* pName, char** pRestOfConfLine); struct template *tplFind(char *pName, int iLenName); +int tplGetEntryCount(struct template *pTpl); +void tplPrintList(void); /* * vi:set ai: |