aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/oracle-fwd.hxx
blob: a0cd2ed3edecff6dd0df689a7d524ff94340e5a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// file      : odb/oracle/oracle-fwd.hxx
// author    : Constantin Michael <constantin@codesynthesis.com>
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
// license   : ODB NCUEL; see accompanying LICENSE file

#ifndef ODB_ORACLE_ORACLE_FWD_HXX
#define ODB_ORACLE_ORACLE_FWD_HXX

#include <odb/pre.hxx>

// Forward declaration for some of the types defined in oci.h. This
// allows us to avoid having to include oci.h in public headers.
//
typedef signed int sword;
typedef signed short sb2;
typedef unsigned short ub2;
typedef signed int sb4;
typedef unsigned int ub4;

typedef struct OCIEnv OCIEnv;
typedef struct OCISvcCtx OCISvcCtx;
typedef struct OCIError OCIError;
typedef struct OCIStmt OCIStmt;
typedef struct OCIAuthInfo OCIAuthInfo;
typedef struct OCITrans OCITrans;

// Define an external type identifier for the national character types.
// These are used exclusively for identifying national character encoded
// buffers while setting the character set form of an OCIBind or OCIDefine
// handle. They are never passed to the OCI API.
//
extern ub2 SQLT_NCHAR;
extern ub2 SQLT_NVARCHAR2;
extern ub2 SQLT_NCLOB;

#include <odb/post.hxx>

#endif // ODB_ORACLE_ORACLE_FWD_HXX