diff options
author | Luis Fernando Muñoz Mejías <Luis.Fernando.Munoz.Mejias@cern.ch> | 2009-03-25 18:16:24 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-25 18:46:23 +0100 |
commit | 97480eafbc67ec7e84497868a1777ce0d7881e6c (patch) | |
tree | e99c6a5e2fc3c1239d7c6135ff4752aceb6a0590 /plugins/omoracle/omoracle.h | |
parent | 611b3364491cf30dc866932a053ae925e1f182ac (diff) | |
download | rsyslog-97480eafbc67ec7e84497868a1777ce0d7881e6c.tar.gz rsyslog-97480eafbc67ec7e84497868a1777ce0d7881e6c.tar.xz rsyslog-97480eafbc67ec7e84497868a1777ce0d7881e6c.zip |
Start the output module for Oracle.
Currently, resources are allocated, freed and the code compiles. No
tests yet.
Diffstat (limited to 'plugins/omoracle/omoracle.h')
-rw-r--r-- | plugins/omoracle/omoracle.h | 23 |
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 |