summaryrefslogtreecommitdiffstats
path: root/template.h
diff options
context:
space:
mode:
Diffstat (limited to 'template.h')
-rw-r--r--template.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/template.h b/template.h
index 9f6a4c33..218f8b27 100644
--- a/template.h
+++ b/template.h
@@ -119,6 +119,13 @@ struct templateEntry {
} data;
};
+/* A field in a list returned by OMSR_TPL_AS_FIELDS / ACT_FIELDS_PASSING.
+ Terminated by an entry with NULL fieldName. */
+struct templateField {
+ es_str_t *fieldName; /* Borrowed reference, do not free! */
+ uchar *value; /* For free() */
+};
+
/* interfaces */
BEGINinterface(tpl) /* name must also be changed in ENDinterface macro! */
@@ -144,6 +151,7 @@ rsRetVal ExtendBuf(uchar **pBuf, size_t *pLenBuf, size_t iMinSize);
* rgerhards, 2007-08-06
*/
rsRetVal tplToArray(struct template *pTpl, msg_t *pMsg, uchar*** ppArr);
+rsRetVal tplToFields(struct template *pTpl, msg_t *pMsg, struct templateField **pFields);
rsRetVal tplToString(struct template *pTpl, msg_t *pMsg, uchar** ppSz, size_t *);
rsRetVal doEscape(uchar **pp, size_t *pLen, unsigned short *pbMustBeFreed, int escapeMode);