mysqlStubs.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. *-----------------------------------------------------------------------------
  3. *
  4. * ../generic/mysqlStubs.h --
  5. *
  6. * Stubs for procedures in mysqlStubDefs.txt
  7. *
  8. * Generated by genExtStubs.tcl: DO NOT EDIT
  9. * 2017-05-26 05:57:32Z
  10. *
  11. *-----------------------------------------------------------------------------
  12. */
  13. typedef struct mysqlStubDefs {
  14. /* Functions from libraries: mysqlclient_r mysqlclient mysql */
  15. int (STDCALL*mysql_server_initPtr)(int, char**, char**);
  16. void (STDCALL*mysql_server_endPtr)(void);
  17. my_ulonglong (STDCALL*mysql_affected_rowsPtr)(MYSQL*);
  18. my_bool (STDCALL*mysql_autocommitPtr)(MYSQL*, my_bool);
  19. my_bool (STDCALL*mysql_change_userPtr)(MYSQL*, const char*, const char*, const char*);
  20. my_bool (STDCALL*mysql_closePtr)(MYSQL*);
  21. my_bool (STDCALL*mysql_commitPtr)(MYSQL*);
  22. unsigned int (STDCALL*mysql_errnoPtr)(MYSQL*);
  23. const char* (STDCALL*mysql_errorPtr)(MYSQL*);
  24. MYSQL_FIELD* (STDCALL*mysql_fetch_fieldsPtr)(MYSQL_RES*);
  25. unsigned long* (STDCALL*mysql_fetch_lengthsPtr)(MYSQL_RES*);
  26. MYSQL_ROW (STDCALL*mysql_fetch_rowPtr)(MYSQL_RES*);
  27. unsigned int (STDCALL*mysql_field_countPtr)(MYSQL*);
  28. void (STDCALL*mysql_free_resultPtr)(MYSQL_RES*);
  29. unsigned long (STDCALL*mysql_get_client_versionPtr)(void);
  30. MYSQL* (STDCALL*mysql_initPtr)(MYSQL*);
  31. MYSQL_RES* (STDCALL*mysql_list_fieldsPtr)(MYSQL*, const char*, const char*);
  32. MYSQL_RES* (STDCALL*mysql_list_tablesPtr)(MYSQL*, const char*);
  33. unsigned int (STDCALL*mysql_num_fieldsPtr)(MYSQL_RES*);
  34. int (STDCALL*mysql_optionsPtr)(MYSQL*, enum mysql_option, const void*);
  35. int (STDCALL*mysql_queryPtr)(MYSQL*, const char*);
  36. MYSQL* (STDCALL*mysql_real_connectPtr)(MYSQL*, const char*, const char*, const char*, const char*, unsigned int, const char*, unsigned long);
  37. my_bool (STDCALL*mysql_rollbackPtr)(MYSQL*);
  38. int (STDCALL*mysql_select_dbPtr)(MYSQL*, const char*);
  39. const char* (STDCALL*mysql_sqlstatePtr)(MYSQL*);
  40. my_bool (STDCALL*mysql_ssl_setPtr)(MYSQL*, const char*, const char*, const char*, const char*, const char*);
  41. my_ulonglong (STDCALL*mysql_stmt_affected_rowsPtr)(MYSQL_STMT*);
  42. my_bool (STDCALL*mysql_stmt_bind_paramPtr)(MYSQL_STMT*, MYSQL_BIND*);
  43. my_bool (STDCALL*mysql_stmt_bind_resultPtr)(MYSQL_STMT*, MYSQL_BIND*);
  44. my_bool (STDCALL*mysql_stmt_closePtr)(MYSQL_STMT*);
  45. unsigned int (STDCALL*mysql_stmt_errnoPtr)(MYSQL_STMT*);
  46. const char* (STDCALL*mysql_stmt_errorPtr)(MYSQL_STMT*);
  47. int (STDCALL*mysql_stmt_executePtr)(MYSQL_STMT*);
  48. int (STDCALL*mysql_stmt_fetchPtr)(MYSQL_STMT*);
  49. int (STDCALL*mysql_stmt_fetch_columnPtr)(MYSQL_STMT*, MYSQL_BIND*, unsigned int, unsigned long);
  50. MYSQL_STMT* (STDCALL*mysql_stmt_initPtr)(MYSQL*);
  51. int (STDCALL*mysql_stmt_preparePtr)(MYSQL_STMT*, const char*, unsigned long);
  52. MYSQL_RES* (STDCALL*mysql_stmt_result_metadataPtr)(MYSQL_STMT*);
  53. const char* (STDCALL*mysql_stmt_sqlstatePtr)(MYSQL_STMT*);
  54. int (STDCALL*mysql_stmt_store_resultPtr)(MYSQL_STMT*);
  55. MYSQL_RES* (STDCALL*mysql_store_resultPtr)(MYSQL*);
  56. } mysqlStubDefs;
  57. #define mysql_server_init (mysqlStubs->mysql_server_initPtr)
  58. #define mysql_server_end (mysqlStubs->mysql_server_endPtr)
  59. #define mysql_affected_rows (mysqlStubs->mysql_affected_rowsPtr)
  60. #define mysql_autocommit (mysqlStubs->mysql_autocommitPtr)
  61. #define mysql_change_user (mysqlStubs->mysql_change_userPtr)
  62. #define mysql_close (mysqlStubs->mysql_closePtr)
  63. #define mysql_commit (mysqlStubs->mysql_commitPtr)
  64. #define mysql_errno (mysqlStubs->mysql_errnoPtr)
  65. #define mysql_error (mysqlStubs->mysql_errorPtr)
  66. #define mysql_fetch_fields (mysqlStubs->mysql_fetch_fieldsPtr)
  67. #define mysql_fetch_lengths (mysqlStubs->mysql_fetch_lengthsPtr)
  68. #define mysql_fetch_row (mysqlStubs->mysql_fetch_rowPtr)
  69. #define mysql_field_count (mysqlStubs->mysql_field_countPtr)
  70. #define mysql_free_result (mysqlStubs->mysql_free_resultPtr)
  71. #define mysql_get_client_version (mysqlStubs->mysql_get_client_versionPtr)
  72. #define mysql_init (mysqlStubs->mysql_initPtr)
  73. #define mysql_list_fields (mysqlStubs->mysql_list_fieldsPtr)
  74. #define mysql_list_tables (mysqlStubs->mysql_list_tablesPtr)
  75. #define mysql_num_fields (mysqlStubs->mysql_num_fieldsPtr)
  76. #define mysql_options (mysqlStubs->mysql_optionsPtr)
  77. #define mysql_query (mysqlStubs->mysql_queryPtr)
  78. #define mysql_real_connect (mysqlStubs->mysql_real_connectPtr)
  79. #define mysql_rollback (mysqlStubs->mysql_rollbackPtr)
  80. #define mysql_select_db (mysqlStubs->mysql_select_dbPtr)
  81. #define mysql_sqlstate (mysqlStubs->mysql_sqlstatePtr)
  82. #define mysql_ssl_set (mysqlStubs->mysql_ssl_setPtr)
  83. #define mysql_stmt_affected_rows (mysqlStubs->mysql_stmt_affected_rowsPtr)
  84. #define mysql_stmt_bind_param (mysqlStubs->mysql_stmt_bind_paramPtr)
  85. #define mysql_stmt_bind_result (mysqlStubs->mysql_stmt_bind_resultPtr)
  86. #define mysql_stmt_close (mysqlStubs->mysql_stmt_closePtr)
  87. #define mysql_stmt_errno (mysqlStubs->mysql_stmt_errnoPtr)
  88. #define mysql_stmt_error (mysqlStubs->mysql_stmt_errorPtr)
  89. #define mysql_stmt_execute (mysqlStubs->mysql_stmt_executePtr)
  90. #define mysql_stmt_fetch (mysqlStubs->mysql_stmt_fetchPtr)
  91. #define mysql_stmt_fetch_column (mysqlStubs->mysql_stmt_fetch_columnPtr)
  92. #define mysql_stmt_init (mysqlStubs->mysql_stmt_initPtr)
  93. #define mysql_stmt_prepare (mysqlStubs->mysql_stmt_preparePtr)
  94. #define mysql_stmt_result_metadata (mysqlStubs->mysql_stmt_result_metadataPtr)
  95. #define mysql_stmt_sqlstate (mysqlStubs->mysql_stmt_sqlstatePtr)
  96. #define mysql_stmt_store_result (mysqlStubs->mysql_stmt_store_resultPtr)
  97. #define mysql_store_result (mysqlStubs->mysql_store_resultPtr)
  98. MODULE_SCOPE const mysqlStubDefs *mysqlStubs;