summaryrefslogtreecommitdiffstats
path: root/runtime/objomsr.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-03 12:52:53 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-03 12:52:53 +0200
commit1a08fa5ded3087a3b60d87a20d25a4ec589eba21 (patch)
tree9dd51c4b9db468be41a63f4286029d95bef0bf0b /runtime/objomsr.h
parent5f397495524ffe460fe93d2f1069f3077f48b7b0 (diff)
parentec0e2c3e7df6addc02431628daddfeae49b92af7 (diff)
downloadrsyslog-1a08fa5ded3087a3b60d87a20d25a4ec589eba21.tar.gz
rsyslog-1a08fa5ded3087a3b60d87a20d25a4ec589eba21.tar.xz
rsyslog-1a08fa5ded3087a3b60d87a20d25a4ec589eba21.zip
Merge branch 'master' into oracle
Diffstat (limited to 'runtime/objomsr.h')
-rw-r--r--runtime/objomsr.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/objomsr.h b/runtime/objomsr.h
index 2255e4f3..75ad0fb8 100644
--- a/runtime/objomsr.h
+++ b/runtime/objomsr.h
@@ -1,6 +1,6 @@
/* Definition of the omsr (omodStringRequest) object.
*
- * Copyright 2007 Rainer Gerhards and Adiscon GmbH.
+ * Copyright 2007, 2009 Rainer Gerhards and Adiscon GmbH.
*
* This file is part of the rsyslog runtime library.
*
@@ -27,7 +27,8 @@
/* define flags for required template options */
#define OMSR_NO_RQD_TPL_OPTS 0
#define OMSR_RQD_TPL_OPT_SQL 1
-/* next option is 2, 4, 8, ... */
+#define OMSR_TPL_AS_ARRAY 2 /* introduced in 4.1.6, 2009-04-03 */
+/* next option is 4, 8, 16, ... */
struct omodStringRequest_s { /* strings requested by output module for doAction() */
int iNumEntries; /* number of array entries for data elements below */
@@ -40,6 +41,7 @@ typedef struct omodStringRequest_s omodStringRequest_t;
rsRetVal OMSRdestruct(omodStringRequest_t *pThis);
rsRetVal OMSRconstruct(omodStringRequest_t **ppThis, int iNumEntries);
rsRetVal OMSRsetEntry(omodStringRequest_t *pThis, int iEntry, uchar *pTplName, int iTplOpts);
+rsRetVal OMSRgetSupportedTplOpts(unsigned long *pOpts);
int OMSRgetEntryCount(omodStringRequest_t *pThis);
int OMSRgetEntry(omodStringRequest_t *pThis, int iEntry, uchar **ppTplName, int *piTplOpts);