PostgreSQL Source Code: src/interfaces/libpq/libpq-events.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef LIBPQ_EVENTS_H
17#define LIBPQ_EVENTS_H
18
20
21#ifdef __cplusplus
22extern "C"
23{
24#endif
25
26
27typedef enum
28{
36
37typedef struct
38{
41
42typedef struct
43{
46
47typedef struct
48{
51
52typedef struct
53{
57
58typedef struct
59{
63
64typedef struct
65{
68
70
71
73 const char *name, void *passThrough);
74
75
77
78
80
81
83
84
86
87
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif
int PQresultSetInstanceData(PGresult *result, PGEventProc proc, void *data)
int PQfireResultCreateEvents(PGconn *conn, PGresult *res)
int PQregisterEventProc(PGconn *conn, PGEventProc proc, const char *name, void *passThrough)
int(* PGEventProc)(PGEventId evtId, void *evtInfo, void *passThrough)
void * PQresultInstanceData(const PGresult *result, PGEventProc proc)
int PQsetInstanceData(PGconn *conn, PGEventProc proc, void *data)
void * PQinstanceData(const PGconn *conn, PGEventProc proc)