summaryrefslogtreecommitdiffstats
path: root/objomsr.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-27 09:15:11 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-27 09:15:11 +0000
commit8193522d85290df659d8c2e505e8c47f39db9267 (patch)
treefa5bcc05843c76b03ba409b21a128cfc49b9fb48 /objomsr.h
parent4d419a0ee271ef6d752a2d3b9d880651a46383d8 (diff)
downloadrsyslog-8193522d85290df659d8c2e505e8c47f39db9267.tar.gz
rsyslog-8193522d85290df659d8c2e505e8c47f39db9267.tar.xz
rsyslog-8193522d85290df659d8c2e505e8c47f39db9267.zip
- added omsr object (objomsr.c, objomsr.h) - template request for output
modules
Diffstat (limited to 'objomsr.h')
-rw-r--r--objomsr.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/objomsr.h b/objomsr.h
new file mode 100644
index 00000000..c84b2870
--- /dev/null
+++ b/objomsr.h
@@ -0,0 +1,39 @@
+/* Definition of the omsr (omodStringRequest) object.
+ *
+ * Copyright 2007 Rainer Gerhards and Adiscon GmbH.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * A copy of the GPL can be found in the file "COPYING" in this distribution.
+ */
+
+#ifndef OBJOMSR_H_INCLUDED
+#define OBJOMSR_H_INCLUDED
+
+struct omodStringRequest_s { /* strings requested by output module for doAction() */
+ int iNumEntries; /* number of array entries for data elements below */
+ uchar **ppTplName; /* pointer to array of template names */
+ int *piTplOpts; /* pointer to array of check-options when pulling template */
+};
+typedef struct omodStringRequest_s omodStringRequest_t;
+
+/* prototypes */
+rsRetVal OMSRdestruct(omodStringRequest_t *pThis);
+rsRetVal OMSRconstruct(omodStringRequest_t **ppThis, int iNumEntries);
+rsRetVal OMSRsetEntry(omodStringRequest_t *pThis, int iEntry, uchar *pTplName, int iTplOpts);
+int OMSRgetEntryCount(omodStringRequest_t *pThis);
+int OMSRgetEntry(omodStringRequest_t *pThis, int iEntry, uchar **ppTplName, int *piTplOpts);
+
+#endif /* #ifndef OBJOMSR_H_INCLUDED */