pqStubs.h 3.5 KB

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