-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcallbacks.go
45 lines (35 loc) · 909 Bytes
/
callbacks.go
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
package oracle
/*
#include <oci.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
sb4 ora_clb_in(void *ictxp,
OCIBind *bindp,
ub4 iter,
ub4 index,
void **bufpp,
ub4 *alenp,
ub1 *piecep,
void **indpp) {
*piecep = OCI_ONE_PIECE;
OraCallbackIn(ictxp, iter, index, bufpp, alenp, indpp);
return OCI_CONTINUE;
}
sb4 ora_clb_out(void *octxp,
OCIBind *bindp,
ub4 iter,
ub4 index,
void **bufpp,
ub4 **alenp,
ub1 *piecep,
void **indpp,
ub2 **rcodep) {
*bufpp = NULL;
*piecep = OCI_ONE_PIECE;
printf("In Out Callback!\n");
return OCI_CONTINUE;
}
*/
import "C"