diff options
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: |