odbcStubs.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. *-----------------------------------------------------------------------------
  3. *
  4. * odbcStubs.h --
  5. *
  6. * Stubs for procedures in odbcStubDefs.txt
  7. *
  8. * Generated by genExtStubs.tcl: DO NOT EDIT
  9. * 2018-05-12 16:18:48Z
  10. *
  11. *-----------------------------------------------------------------------------
  12. */
  13. typedef struct odbcStubDefs {
  14. SQLRETURN (SQL_API*SQLAllocHandlePtr)(SQLSMALLINT,SQLHANDLE,SQLHANDLE*);
  15. SQLRETURN (SQL_API*SQLBindParameterPtr)(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLSMALLINT,SQLULEN,SQLSMALLINT,SQLPOINTER,SQLLEN,SQLLEN*);
  16. SQLRETURN (SQL_API*SQLCloseCursorPtr)(SQLHSTMT);
  17. SQLRETURN (SQL_API*SQLColumnsWPtr)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT ,SQLWCHAR*,SQLSMALLINT );
  18. SQLRETURN (SQL_API*SQLDataSourcesWPtr)(SQLHENV,SQLUSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*);
  19. SQLRETURN (SQL_API*SQLDescribeColWPtr)(SQLHSTMT,SQLUSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLSMALLINT*,SQLULEN*,SQLSMALLINT*,SQLSMALLINT*);
  20. SQLRETURN (SQL_API*SQLDescribeParamPtr)(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT*,SQLULEN*,SQLSMALLINT*,SQLSMALLINT*);
  21. SQLRETURN (SQL_API*SQLDisconnectPtr)(SQLHDBC);
  22. SQLRETURN (SQL_API*SQLDriverConnectWPtr)(SQLHDBC,SQLHWND,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLUSMALLINT);
  23. SQLRETURN (SQL_API*SQLDriversWPtr)(SQLHENV,SQLUSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*);
  24. SQLRETURN (SQL_API*SQLEndTranPtr)(SQLSMALLINT,SQLHANDLE,SQLSMALLINT);
  25. SQLRETURN (SQL_API*SQLExecutePtr)(SQLHSTMT);
  26. SQLRETURN (SQL_API*SQLFetchPtr)(SQLHSTMT);
  27. SQLRETURN (SQL_API*SQLForeignKeysWPtr)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
  28. SQLRETURN (SQL_API*SQLFreeHandlePtr)(SQLSMALLINT,SQLHANDLE);
  29. SQLRETURN (SQL_API*SQLGetConnectAttrPtr)(SQLHDBC,SQLINTEGER,SQLPOINTER,SQLINTEGER,SQLINTEGER*);
  30. SQLRETURN (SQL_API*SQLGetDataPtr)(SQLHSTMT,SQLUSMALLINT,SQLSMALLINT,SQLPOINTER,SQLLEN,SQLLEN*);
  31. SQLRETURN (SQL_API*SQLGetDiagFieldAPtr)(SQLSMALLINT,SQLHANDLE,SQLSMALLINT,SQLSMALLINT,SQLPOINTER,SQLSMALLINT,SQLSMALLINT*);
  32. SQLRETURN (SQL_API*SQLGetDiagRecWPtr)(SQLSMALLINT,SQLHANDLE,SQLSMALLINT,SQLWCHAR*,SQLINTEGER*,SQLWCHAR*,SQLSMALLINT,SQLSMALLINT*);
  33. SQLRETURN (SQL_API*SQLGetInfoWPtr)(SQLHANDLE,SQLUSMALLINT,SQLPOINTER,SQLSMALLINT,SQLSMALLINT*);
  34. SQLRETURN (SQL_API*SQLGetTypeInfoPtr)(SQLHSTMT,SQLSMALLINT);
  35. SQLRETURN (SQL_API*SQLMoreResultsPtr)(SQLHSTMT);
  36. SQLRETURN (SQL_API*SQLNumParamsPtr)(SQLHSTMT,SQLSMALLINT*);
  37. SQLRETURN (SQL_API*SQLNumResultColsPtr)(SQLHSTMT,SQLSMALLINT*);
  38. SQLRETURN (SQL_API*SQLPrepareWPtr)(SQLHSTMT,SQLWCHAR*,SQLINTEGER);
  39. SQLRETURN (SQL_API*SQLPrimaryKeysWPtr)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
  40. SQLRETURN (SQL_API*SQLRowCountPtr)(SQLHSTMT,SQLLEN*);
  41. SQLRETURN (SQL_API*SQLSetConnectAttrPtr)(SQLHDBC,SQLINTEGER,SQLPOINTER,SQLINTEGER);
  42. SQLRETURN (SQL_API*SQLSetConnectOptionPtr)(SQLHDBC,SQLUSMALLINT,SQLULEN);
  43. SQLRETURN (SQL_API*SQLSetEnvAttrPtr)(SQLHENV,SQLINTEGER,SQLPOINTER,SQLINTEGER);
  44. SQLRETURN (SQL_API*SQLTablesWPtr)(SQLHSTMT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT,SQLWCHAR*,SQLSMALLINT);
  45. } odbcStubDefs;
  46. #define SQLAllocHandle (odbcStubs->SQLAllocHandlePtr)
  47. #define SQLBindParameter (odbcStubs->SQLBindParameterPtr)
  48. #define SQLCloseCursor (odbcStubs->SQLCloseCursorPtr)
  49. #define SQLColumnsW (odbcStubs->SQLColumnsWPtr)
  50. #define SQLDataSourcesW (odbcStubs->SQLDataSourcesWPtr)
  51. #define SQLDescribeColW (odbcStubs->SQLDescribeColWPtr)
  52. #define SQLDescribeParam (odbcStubs->SQLDescribeParamPtr)
  53. #define SQLDisconnect (odbcStubs->SQLDisconnectPtr)
  54. #define SQLDriverConnectW (odbcStubs->SQLDriverConnectWPtr)
  55. #define SQLDriversW (odbcStubs->SQLDriversWPtr)
  56. #define SQLEndTran (odbcStubs->SQLEndTranPtr)
  57. #define SQLExecute (odbcStubs->SQLExecutePtr)
  58. #define SQLFetch (odbcStubs->SQLFetchPtr)
  59. #define SQLForeignKeysW (odbcStubs->SQLForeignKeysWPtr)
  60. #define SQLFreeHandle (odbcStubs->SQLFreeHandlePtr)
  61. #define SQLGetConnectAttr (odbcStubs->SQLGetConnectAttrPtr)
  62. #define SQLGetData (odbcStubs->SQLGetDataPtr)
  63. #define SQLGetDiagFieldA (odbcStubs->SQLGetDiagFieldAPtr)
  64. #define SQLGetDiagRecW (odbcStubs->SQLGetDiagRecWPtr)
  65. #define SQLGetInfoW (odbcStubs->SQLGetInfoWPtr)
  66. #define SQLGetTypeInfo (odbcStubs->SQLGetTypeInfoPtr)
  67. #define SQLMoreResults (odbcStubs->SQLMoreResultsPtr)
  68. #define SQLNumParams (odbcStubs->SQLNumParamsPtr)
  69. #define SQLNumResultCols (odbcStubs->SQLNumResultColsPtr)
  70. #define SQLPrepareW (odbcStubs->SQLPrepareWPtr)
  71. #define SQLPrimaryKeysW (odbcStubs->SQLPrimaryKeysWPtr)
  72. #define SQLRowCount (odbcStubs->SQLRowCountPtr)
  73. #define SQLSetConnectAttr (odbcStubs->SQLSetConnectAttrPtr)
  74. #define SQLSetConnectOption (odbcStubs->SQLSetConnectOptionPtr)
  75. #define SQLSetEnvAttr (odbcStubs->SQLSetEnvAttrPtr)
  76. #define SQLTablesW (odbcStubs->SQLTablesWPtr)
  77. MODULE_SCOPE const odbcStubDefs *odbcStubs;