summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2004-11-18 15:29:41 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2004-11-18 15:29:41 +0000
commitfb5606f892184461ba22c030090ec94913e4aeb1 (patch)
tree6f5aeace4b9484d3921f410e8281a569492ec463 /template.h
parent9a7c44921d6d17ae577c854f6c9606d5a1a0189e (diff)
downloadrsyslog-fb5606f892184461ba22c030090ec94913e4aeb1.tar.gz
rsyslog-fb5606f892184461ba22c030090ec94913e4aeb1.tar.xz
rsyslog-fb5606f892184461ba22c030090ec94913e4aeb1.zip
MsgObjNearlyCompleted
Diffstat (limited to 'template.h')
-rw-r--r--template.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/template.h b/template.h
index e438e988..a3019828 100644
--- a/template.h
+++ b/template.h
@@ -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: