summaryrefslogtreecommitdiffstats
path: root/plugins/omoracle/omoracle.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-08 19:00:24 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-08 19:00:24 +0200
commitaacb6dcbf49b75b223de09aa74c11c2f22f9da27 (patch)
treebc0e294a52190a177e8f64670ee362f1df812556 /plugins/omoracle/omoracle.h
parent1cfa08749b1c474de850f693915b9a32d456c593 (diff)
parent3fa5edb085cf01e0fe502100801cf41bd96228b2 (diff)
downloadrsyslog-aacb6dcbf49b75b223de09aa74c11c2f22f9da27.tar.gz
rsyslog-aacb6dcbf49b75b223de09aa74c11c2f22f9da27.tar.xz
rsyslog-aacb6dcbf49b75b223de09aa74c11c2f22f9da27.zip
Merge branch 'oracle' into nextmaster
Diffstat (limited to 'plugins/omoracle/omoracle.h')
-rw-r--r--plugins/omoracle/omoracle.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/omoracle/omoracle.h b/plugins/omoracle/omoracle.h
new file mode 100644
index 00000000..b0e70917
--- /dev/null
+++ b/plugins/omoracle/omoracle.h
@@ -0,0 +1,23 @@
+/** Definitions for the Oracle output module.
+
+ This module needs OCI to be installed (on Red Hat-like systems
+ this is usually the oracle-instantclient-devel RPM).
+
+ Author: Luis Fernando Muñoz Mejías <Luis.Fernando.Munoz.Mejias@cern.ch>
+*/
+#ifndef __OMORACLEH__
+#define __OMORACLEH__
+
+/** Macros to make error handling easier. */
+
+/** Checks for errors on the OCI handling. */
+#define CHECKERR(handle,status) CHKiRet(oci_errors((handle), \
+ OCI_HTYPE_ERROR, (status)))
+
+/** Checks for errors when handling the environment of OCI. */
+#define CHECKENV(handle,status) CHKiRet(oci_errors((handle), \
+ OCI_HTYPE_ENV, (status)))
+
+enum { MAX_BUFSIZE = 2048 };
+
+#endif