jpayne@69: /* jpayne@69: *----------------------------------------------------------------------------- jpayne@69: * jpayne@69: * ../generic/pqStubs.h -- jpayne@69: * jpayne@69: * Stubs for procedures in pqStubDefs.txt jpayne@69: * jpayne@69: * Generated by genExtStubs.tcl: DO NOT EDIT jpayne@69: * 2015-06-26 12:55:15Z jpayne@69: * jpayne@69: *----------------------------------------------------------------------------- jpayne@69: */ jpayne@69: jpayne@69: typedef struct pqStubDefs { jpayne@69: jpayne@69: /* Functions from libraries: pq */ jpayne@69: jpayne@69: const char* (*pg_encoding_to_charPtr)(int); jpayne@69: void (*PQclearPtr)(PGresult*); jpayne@69: int (*PQclientEncodingPtr)(const PGconn*); jpayne@69: char* (*PQcmdTuplesPtr)(PGresult*); jpayne@69: PGconn* (*PQconnectdbPtr)(const char*); jpayne@69: char* (*PQerrorMessagePtr)(const PGconn*); jpayne@69: PGresult* (*PQdescribePreparedPtr)(PGconn*, const char*); jpayne@69: PGresult* (*PQexecPtr)(PGconn*, const char*); jpayne@69: PGresult* (*PQexecPreparedPtr)(PGconn*, const char*, int, const char *const*, const int*, const int*, int); jpayne@69: char* (*PQdbPtr)(const PGconn *); jpayne@69: void (*PQfinishPtr)(PGconn*); jpayne@69: char* (*PQfnamePtr)(PGresult*, int); jpayne@69: int (*PQfnumberPtr)(const PGresult*, const char*); jpayne@69: Oid (*PQftypePtr)(const PGresult*, int); jpayne@69: int (*PQgetisnullPtr)(const PGresult*, int, int); jpayne@69: int (*PQgetlengthPtr)(const PGresult*, int, int); jpayne@69: char* (*PQgetvaluePtr)(const PGresult*, int, int); jpayne@69: char* (*PQhostPtr)(const PGconn*); jpayne@69: int (*PQnfieldsPtr)(const PGresult*); jpayne@69: int (*PQnparamsPtr)(const PGresult*); jpayne@69: int (*PQntuplesPtr)(const PGresult*); jpayne@69: char* (*PQoptionsPtr)(const PGconn*); jpayne@69: Oid (*PQparamtypePtr)(const PGresult*, int); jpayne@69: char* (*PQpassPtr)(const PGconn*); jpayne@69: char* (*PQportPtr)(const PGconn*); jpayne@69: PGresult* (*PQpreparePtr)(PGconn*, const char*, const char*, int, const Oid*); jpayne@69: char* (*PQresultErrorFieldPtr)(const PGresult*, int); jpayne@69: ExecStatusType (*PQresultStatusPtr)(const PGresult*); jpayne@69: int (*PQsetClientEncodingPtr)(PGconn*, const char*); jpayne@69: PQnoticeProcessor (*PQsetNoticeProcessorPtr)(PGconn*, PQnoticeProcessor, void*); jpayne@69: ConnStatusType (*PQstatusPtr)(PGconn*); jpayne@69: char* (*PQuserPtr)(const PGconn*); jpayne@69: char* (*PQttyPtr)(const PGconn*); jpayne@69: } pqStubDefs; jpayne@69: #define pg_encoding_to_char (pqStubs->pg_encoding_to_charPtr) jpayne@69: #define PQclear (pqStubs->PQclearPtr) jpayne@69: #define PQclientEncoding (pqStubs->PQclientEncodingPtr) jpayne@69: #define PQcmdTuples (pqStubs->PQcmdTuplesPtr) jpayne@69: #define PQconnectdb (pqStubs->PQconnectdbPtr) jpayne@69: #define PQerrorMessage (pqStubs->PQerrorMessagePtr) jpayne@69: #define PQdescribePrepared (pqStubs->PQdescribePreparedPtr) jpayne@69: #define PQexec (pqStubs->PQexecPtr) jpayne@69: #define PQexecPrepared (pqStubs->PQexecPreparedPtr) jpayne@69: #define PQdb (pqStubs->PQdbPtr) jpayne@69: #define PQfinish (pqStubs->PQfinishPtr) jpayne@69: #define PQfname (pqStubs->PQfnamePtr) jpayne@69: #define PQfnumber (pqStubs->PQfnumberPtr) jpayne@69: #define PQftype (pqStubs->PQftypePtr) jpayne@69: #define PQgetisnull (pqStubs->PQgetisnullPtr) jpayne@69: #define PQgetlength (pqStubs->PQgetlengthPtr) jpayne@69: #define PQgetvalue (pqStubs->PQgetvaluePtr) jpayne@69: #define PQhost (pqStubs->PQhostPtr) jpayne@69: #define PQnfields (pqStubs->PQnfieldsPtr) jpayne@69: #define PQnparams (pqStubs->PQnparamsPtr) jpayne@69: #define PQntuples (pqStubs->PQntuplesPtr) jpayne@69: #define PQoptions (pqStubs->PQoptionsPtr) jpayne@69: #define PQparamtype (pqStubs->PQparamtypePtr) jpayne@69: #define PQpass (pqStubs->PQpassPtr) jpayne@69: #define PQport (pqStubs->PQportPtr) jpayne@69: #define PQprepare (pqStubs->PQpreparePtr) jpayne@69: #define PQresultErrorField (pqStubs->PQresultErrorFieldPtr) jpayne@69: #define PQresultStatus (pqStubs->PQresultStatusPtr) jpayne@69: #define PQsetClientEncoding (pqStubs->PQsetClientEncodingPtr) jpayne@69: #define PQsetNoticeProcessor (pqStubs->PQsetNoticeProcessorPtr) jpayne@69: #define PQstatus (pqStubs->PQstatusPtr) jpayne@69: #define PQuser (pqStubs->PQuserPtr) jpayne@69: #define PQtty (pqStubs->PQttyPtr) jpayne@69: MODULE_SCOPE const pqStubDefs *pqStubs;