tdbcDecls.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * tdbcDecls.h --
  3. *
  4. * Exported Stubs declarations for Tcl DataBaseConnectivity (TDBC).
  5. *
  6. * This file is (mostly) generated automatically from tdbc.decls
  7. *
  8. * Copyright (c) 2008 by Kevin B. Kenny.
  9. *
  10. * See the file "license.terms" for information on usage and redistribution of
  11. * this file, and for a DISCLAIMER OF ALL WARRANTIES.
  12. *
  13. * RCS: @(#) $Id$
  14. *
  15. */
  16. /* !BEGIN!: Do not edit below this line. */
  17. #define TDBC_STUBS_EPOCH 0
  18. #define TDBC_STUBS_REVISION 3
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. /*
  23. * Exported function declarations:
  24. */
  25. /* 0 */
  26. TDBCAPI int Tdbc_Init_ (Tcl_Interp* interp);
  27. /* 1 */
  28. TDBCAPI Tcl_Obj* Tdbc_TokenizeSql (Tcl_Interp* interp,
  29. const char* statement);
  30. /* 2 */
  31. TDBCAPI const char* Tdbc_MapSqlState (const char* sqlstate);
  32. typedef struct TdbcStubs {
  33. int magic;
  34. int epoch;
  35. int revision;
  36. void *hooks;
  37. int (*tdbc_Init_) (Tcl_Interp* interp); /* 0 */
  38. Tcl_Obj* (*tdbc_TokenizeSql) (Tcl_Interp* interp, const char* statement); /* 1 */
  39. const char* (*tdbc_MapSqlState) (const char* sqlstate); /* 2 */
  40. } TdbcStubs;
  41. extern const TdbcStubs *tdbcStubsPtr;
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #if defined(USE_TDBC_STUBS)
  46. /*
  47. * Inline function declarations:
  48. */
  49. #define Tdbc_Init_ \
  50. (tdbcStubsPtr->tdbc_Init_) /* 0 */
  51. #define Tdbc_TokenizeSql \
  52. (tdbcStubsPtr->tdbc_TokenizeSql) /* 1 */
  53. #define Tdbc_MapSqlState \
  54. (tdbcStubsPtr->tdbc_MapSqlState) /* 2 */
  55. #endif /* defined(USE_TDBC_STUBS) */
  56. /* !END!: Do not edit above this line. */