1 /*
2  *-----------------------------------------------------------------------------
3  *
4  * ../generic/pqStubs.h --
5  *
6  *	Stubs for procedures in pqStubDefs.txt
7  *
8  * Generated by genExtStubs.tcl: DO NOT EDIT
9  * 2015-06-26 12:55:15Z
10  *
11  *-----------------------------------------------------------------------------
12  */
13 
14 typedef struct pqStubDefs {
15 
16     /* Functions from libraries: pq */
17 
18     const char* (*pg_encoding_to_charPtr)(int);
19     void (*PQclearPtr)(PGresult*);
20     int (*PQclientEncodingPtr)(const PGconn*);
21     char* (*PQcmdTuplesPtr)(PGresult*);
22     PGconn* (*PQconnectdbPtr)(const char*);
23     char* (*PQerrorMessagePtr)(const PGconn*);
24     PGresult* (*PQdescribePreparedPtr)(PGconn*, const char*);
25     PGresult* (*PQexecPtr)(PGconn*, const char*);
26     PGresult* (*PQexecPreparedPtr)(PGconn*, const char*, int, const char *const*, const int*, const int*, int);
27     char* (*PQdbPtr)(const PGconn *);
28     void (*PQfinishPtr)(PGconn*);
29     char* (*PQfnamePtr)(PGresult*, int);
30     int (*PQfnumberPtr)(const PGresult*, const char*);
31     Oid (*PQftypePtr)(const PGresult*, int);
32     int (*PQgetisnullPtr)(const PGresult*, int, int);
33     int (*PQgetlengthPtr)(const PGresult*, int, int);
34     char* (*PQgetvaluePtr)(const PGresult*, int, int);
35     char* (*PQhostPtr)(const PGconn*);
36     int (*PQnfieldsPtr)(const PGresult*);
37     int (*PQnparamsPtr)(const PGresult*);
38     int (*PQntuplesPtr)(const PGresult*);
39     char* (*PQoptionsPtr)(const PGconn*);
40     Oid (*PQparamtypePtr)(const PGresult*, int);
41     char* (*PQpassPtr)(const PGconn*);
42     char* (*PQportPtr)(const PGconn*);
43     PGresult* (*PQpreparePtr)(PGconn*, const char*, const char*, int, const Oid*);
44     char* (*PQresultErrorFieldPtr)(const PGresult*, int);
45     ExecStatusType (*PQresultStatusPtr)(const PGresult*);
46     int (*PQsetClientEncodingPtr)(PGconn*, const char*);
47     PQnoticeProcessor (*PQsetNoticeProcessorPtr)(PGconn*, PQnoticeProcessor, void*);
48     ConnStatusType (*PQstatusPtr)(PGconn*);
49     char* (*PQuserPtr)(const PGconn*);
50     char* (*PQttyPtr)(const PGconn*);
51 } pqStubDefs;
52 #define pg_encoding_to_char (pqStubs->pg_encoding_to_charPtr)
53 #define PQclear (pqStubs->PQclearPtr)
54 #define PQclientEncoding (pqStubs->PQclientEncodingPtr)
55 #define PQcmdTuples (pqStubs->PQcmdTuplesPtr)
56 #define PQconnectdb (pqStubs->PQconnectdbPtr)
57 #define PQerrorMessage (pqStubs->PQerrorMessagePtr)
58 #define PQdescribePrepared (pqStubs->PQdescribePreparedPtr)
59 #define PQexec (pqStubs->PQexecPtr)
60 #define PQexecPrepared (pqStubs->PQexecPreparedPtr)
61 #define PQdb (pqStubs->PQdbPtr)
62 #define PQfinish (pqStubs->PQfinishPtr)
63 #define PQfname (pqStubs->PQfnamePtr)
64 #define PQfnumber (pqStubs->PQfnumberPtr)
65 #define PQftype (pqStubs->PQftypePtr)
66 #define PQgetisnull (pqStubs->PQgetisnullPtr)
67 #define PQgetlength (pqStubs->PQgetlengthPtr)
68 #define PQgetvalue (pqStubs->PQgetvaluePtr)
69 #define PQhost (pqStubs->PQhostPtr)
70 #define PQnfields (pqStubs->PQnfieldsPtr)
71 #define PQnparams (pqStubs->PQnparamsPtr)
72 #define PQntuples (pqStubs->PQntuplesPtr)
73 #define PQoptions (pqStubs->PQoptionsPtr)
74 #define PQparamtype (pqStubs->PQparamtypePtr)
75 #define PQpass (pqStubs->PQpassPtr)
76 #define PQport (pqStubs->PQportPtr)
77 #define PQprepare (pqStubs->PQpreparePtr)
78 #define PQresultErrorField (pqStubs->PQresultErrorFieldPtr)
79 #define PQresultStatus (pqStubs->PQresultStatusPtr)
80 #define PQsetClientEncoding (pqStubs->PQsetClientEncodingPtr)
81 #define PQsetNoticeProcessor (pqStubs->PQsetNoticeProcessorPtr)
82 #define PQstatus (pqStubs->PQstatusPtr)
83 #define PQuser (pqStubs->PQuserPtr)
84 #define PQtty (pqStubs->PQttyPtr)
85 MODULE_SCOPE const pqStubDefs *pqStubs;
86