-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathocipfndfn.h
More file actions
238 lines (207 loc) · 5.63 KB
/
ocipfndfn.h
File metadata and controls
238 lines (207 loc) · 5.63 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
#pragma once
//Содержит определения типов для указателей функций
#ifndef ORATYPES
#include <oratypes.h>
#endif
#ifndef OCI_ORACLE
#include <oci.h>
#endif
typedef sword(*pOCIEnvCreate)(OCIEnv **hOraEnvp,
ub4 mode,
const void *ctxp,
const void *(*malocfp)
(void *ctxp,
size_t size),
const void *(*ralocfp)
(void *ctxp,
void *memptr,
size_t newsize),
const void(*mfreefp)
(void *ctxp,
void *memptr),
size_t xtramemsz,
void **usrmempp);
typedef sword (*pOCIEnvNlsCreate)(OCIEnv **envhpp,
ub4 mode,
void *ctxp,
void *(*malocfp)
(void *ctxp,
size_t size),
void *(*ralocfp)
(void *ctxp,
void *memptr,
size_t newsize),
void(*mfreefp)
(void *ctxp,
void *memptr),
size_t xtramemsz,
void **usrmempp,
ub2 charset,
ub2 ncharset );
typedef sword(*pOCITerminate)(ub4 mode);
typedef sword(*pOCIHandleAlloc)(const void *parenth,
void **hndlpp,
ub4 type,
size_t xtramem_sz,
void **usrmempp);
typedef sword(*pOCIServerAttach)(OCIServer *srvhp,
OCIError *errhp,
const OraText *dblink,
sb4 dblink_len,
ub4 mode);
typedef sword(*pOCIAttrSet)(void *trgthndlp,
ub4 trghndltyp,
void *attributep,
ub4 size,
ub4 attrtype,
OCIError *errhp);
typedef sword(*pOCISessionBegin)(OCISvcCtx *svchp,
OCIError *errhp,
OCISession *usrhp,
ub4 credt,
ub4 mode);
typedef sword(*pOCISessionEnd)(OCISvcCtx *svchp,
OCIError *errhp,
OCISession *usrhp,
ub4 mode);
typedef sword(*pOCIStmtPrepare)(OCIStmt *stmtp,
OCIError *errhp,
const OraText *stmt,
ub4 stmt_len,
ub4 language,
ub4 mode);
typedef sword(*pOCIDefineByPos)(OCIStmt *stmtp,
OCIDefine **defnpp,
OCIError *errhp,
ub4 position,
void *valuep,
sb4 value_sz,
ub2 dty,
void *indp,
ub2 *rlenp,
ub2 *rcodep,
ub4 mode);
typedef sword(*pOCIStmtExecute)(OCISvcCtx *svchp,
OCIStmt *stmtp,
OCIError *errhp,
ub4 iters,
ub4 rowoff,
const OCISnapshot *snap_in,
OCISnapshot *snap_out,
ub4 mode);
typedef sword(*pOCIBindByName)(OCIStmt *stmtp,
OCIBind **bindpp,
OCIError *errhp,
const OraText *placeholder,
sb4 placeh_len,
void *valuep,
sb4 value_sz,
ub2 dty,
void *indp,
ub2 *alenp,
ub2 *rcodep,
ub4 maxarr_len,
ub4 *curelep,
ub4 mode);
typedef sword(*pOCIBindByPos)(OCIStmt *stmtp,
OCIBind **bindpp,
OCIError *errhp,
ub4 position,
void *valuep,
sb4 value_sz,
ub2 dty,
void *indp,
ub2 *alenp,
ub2 *rcodep,
ub4 maxarr_len,
ub4 *curelep,
ub4 mode);
typedef sword(*pOCITransCommit)(OCISvcCtx *svchp,
OCIError *errhp,
ub4 flags);
typedef sword(*pOCIHandleFree)(void *hndlp,
ub4 type);
typedef sword(*pOCIServerDetach)(OCIServer *srvhp,
OCIError *errhp,
ub4 mode);
typedef sword(*pOCIStmtFetch2)(OCIStmt *stmthp,
OCIError *errhp,
ub4 nrows,
ub2 orientation,
sb4 fetchOffset,
ub4 mode);
typedef sword(*pOCIErrorGet)(void *hndlp,
ub4 recordno,
OraText *sqlstate,
sb4 *errcodep,
OraText *bufp,
ub4 bufsiz,
ub4 type);
typedef sword(*pOCIRawAllocSize)(OCIEnv *env,
OCIError *err,
const OCIRaw *raw,
ub4 *allocsize);
typedef sword(*pOCIRawAssignBytes)(OCIEnv *env,
OCIError *err,
const ub1 *rhs,
ub4 rhs_len,
OCIRaw **lhs);
typedef sword(*pOCILobFileSetName)(OCIEnv *envhp,
OCIError *errhp,
OCILobLocator **filepp,
const text *dir_alias,
ub2 d_length,
const text *filename,
ub2 f_length);
typedef sword(*pOCIDescriptorAlloc)(const void *parenth,
void **descpp,
ub4 type,
size_t xtramem_sz,
void **usrmempp);
typedef sword(*pOCIDescriptorFree)(void *descp,
ub4 type);
typedef sword(*pOCILobFileOpen)(OCISvcCtx *svchp,
OCIError *errhp,
OCILobLocator *filep,
ub1 mode);
typedef sword(*pOCILobFileClose)(OCISvcCtx *svchp,
OCIError *errhp,
OCILobLocator *filep);
typedef sword(*pOCILobGetLength2)(OCISvcCtx *svchp,
OCIError *errhp,
OCILobLocator *locp,
oraub8 *lenp);
typedef void (*pOCICallbackLobRead2)
(
void *ctxp,
const void *bufp,
oraub8 lenp,
ub1 piecep,
void **changed_bufpp,
oraub8 *changed_lenp
);
typedef sword(*pOCILobRead2)(OCISvcCtx *svchp,
OCIError *errhp,
OCILobLocator *locp,
oraub8 *byte_amtp,
oraub8 *char_amtp,
oraub8 offset,
void *bufp,
oraub8 bufl,
ub1 piece,
void *ctxp,
pOCICallbackLobRead2 (cbfp)
(
dvoid *ctxp,
const dvoid *bufp,
oraub8 lenp,
ub1 piecep,
void **changed_bufpp,
oraub8 *changed_lenp
),
ub2 csid,
ub1 csfrm);
typedef sword(*pOCILobFileExists)(OCISvcCtx *svchp,
OCIError *errhp,
OCILobLocator *filep,
boolean *flag);