From 992ec5b8a4f22204c935c5072c6ba4de0018959a Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Fri, 23 Sep 2011 11:12:54 +0200 Subject: Refactor callback union declaration to odb::oracle namespace scope --- odb/oracle/oracle-types.hxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/odb/oracle/oracle-types.hxx b/odb/oracle/oracle-types.hxx index c3d95d3..a3b45c6 100644 --- a/odb/oracle/oracle-types.hxx +++ b/odb/oracle/oracle-types.hxx @@ -50,6 +50,12 @@ namespace odb ub4 size, // [in] The result data size in bytes. chunk_position); // [in] The position of this chunk. + union lob_callback + { + param_callback_type param; + result_callback_type result; + }; + struct bind { ub2 type; // The type stored by buffer. This must be an external @@ -64,11 +70,7 @@ namespace odb // buffer. sb2* indicator; // Pointer to an OCI indicator variable. - union - { - param_callback_type param; - result_callback_type result; - } callback; + lob_callback callback; // This pointer is provided to the user through the context argument // in both parameter and result callback functions. -- cgit v1.1