summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2004-11-17 17:08:52 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2004-11-17 17:08:52 +0000
commit9a7c44921d6d17ae577c854f6c9606d5a1a0189e (patch)
tree3442c97c78a7b55654adf41eee88ec5c654359cc /template.h
parentad0011c81447641474216f306ae1b4709c22ea6c (diff)
downloadrsyslog-9a7c44921d6d17ae577c854f6c9606d5a1a0189e.tar.gz
rsyslog-9a7c44921d6d17ae577c854f6c9606d5a1a0189e.tar.xz
rsyslog-9a7c44921d6d17ae577c854f6c9606d5a1a0189e.zip
ComingCloser
Diffstat (limited to 'template.h')
-rw-r--r--template.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/template.h b/template.h
index 8f96c43b..e438e988 100644
--- a/template.h
+++ b/template.h
@@ -4,11 +4,28 @@
* begun 2004-11-17 rgerhards
*/
struct template {
+ struct template *pNext;
char *pszName;
- char *pszTemplate;
+ int iLenName;
+ struct templateEntry *pEntryRoot;
+ struct templateEntry *pEntryLast;
+};
+
+enum EntryTypes { UNDEFINED = 0, CONSTANT = 1, FIELD = 2 };
+
+/* a specific parse entry */
+struct templateEntry {
+ struct templateEntry *pNext;
+ enum EntryTypes eEntryType;
+ union {
+ char *pConstant; /* pointer to constant value */
+ char *pPropRepl; /* pointer to property replacer string */
+ };
};
struct template* tplConstruct(void);
+struct template *tplAddLine(char* pName, char** pRestOfConfLine);
+struct template *tplFind(char *pName, int iLenName);
/*
* vi:set ai: