summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
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: