tdbc.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * tdbc.h --
  3. *
  4. * Declarations of the public API for Tcl DataBase Connectivity (TDBC)
  5. *
  6. * Copyright (c) 2006 by Kevin B. Kenny
  7. *
  8. * See the file "license.terms" for information on usage and redistribution of
  9. * this file, and for a DISCLAIMER OF ALL WARRANTIES.
  10. *
  11. * RCS: @(#) $Id$
  12. *
  13. *-----------------------------------------------------------------------------
  14. */
  15. #ifndef TDBC_H_INCLUDED
  16. #define TDBC_H_INCLUDED 1
  17. #include <tcl.h>
  18. #ifndef TDBCAPI
  19. # if defined(BUILD_tdbc)
  20. # define TDBCAPI MODULE_SCOPE
  21. # else
  22. # define TDBCAPI extern
  23. # undef USE_TDBC_STUBS
  24. # define USE_TDBC_STUBS 1
  25. # endif
  26. #endif
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. #if defined(BUILD_tdbc)
  31. DLLEXPORT int Tdbc_Init(Tcl_Interp *interp);
  32. #elif defined(STATIC_BUILD)
  33. extern int Tdbc_Init(Tcl_Interp* interp);
  34. #else
  35. DLLIMPORT int Tdbc_Init(Tcl_Interp* interp);
  36. #endif
  37. #define Tdbc_InitStubs(interp) TdbcInitializeStubs(interp, \
  38. TDBC_VERSION, TDBC_STUBS_EPOCH, TDBC_STUBS_REVISION)
  39. #if defined(USE_TDBC_STUBS)
  40. TDBCAPI const char* TdbcInitializeStubs(
  41. Tcl_Interp* interp, const char* version, int epoch, int revision);
  42. #else
  43. # define TdbcInitializeStubs(interp, version, epoch, revision) \
  44. (Tcl_PkgRequire(interp, "tdbc", version))
  45. #endif
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. /*
  50. * TDBC_VERSION and TDBC_PATCHLEVEL here must match the ones that
  51. * appear near the top of configure.ac.
  52. */
  53. #define TDBC_VERSION "1.1"
  54. #define TDBC_PATCHLEVEL "1.1.3"
  55. /*
  56. * Include the Stubs declarations for the public API, generated from
  57. * tdbc.decls.
  58. */
  59. #include "tdbcDecls.h"
  60. #endif
  61. /*
  62. * Local Variables:
  63. * mode: c
  64. * c-basic-offset: 4
  65. * fill-column: 78
  66. * End:
  67. */