jpayne@69: /* jpayne@69: * tdbc.h -- jpayne@69: * jpayne@69: * Declarations of the public API for Tcl DataBase Connectivity (TDBC) jpayne@69: * jpayne@69: * Copyright (c) 2006 by Kevin B. Kenny jpayne@69: * jpayne@69: * See the file "license.terms" for information on usage and redistribution of jpayne@69: * this file, and for a DISCLAIMER OF ALL WARRANTIES. jpayne@69: * jpayne@69: * RCS: @(#) $Id$ jpayne@69: * jpayne@69: *----------------------------------------------------------------------------- jpayne@69: */ jpayne@69: jpayne@69: #ifndef TDBC_H_INCLUDED jpayne@69: #define TDBC_H_INCLUDED 1 jpayne@69: jpayne@69: #include jpayne@69: jpayne@69: #ifndef TDBCAPI jpayne@69: # if defined(BUILD_tdbc) jpayne@69: # define TDBCAPI MODULE_SCOPE jpayne@69: # else jpayne@69: # define TDBCAPI extern jpayne@69: # undef USE_TDBC_STUBS jpayne@69: # define USE_TDBC_STUBS 1 jpayne@69: # endif jpayne@69: #endif jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: #if defined(BUILD_tdbc) jpayne@69: DLLEXPORT int Tdbc_Init(Tcl_Interp *interp); jpayne@69: #elif defined(STATIC_BUILD) jpayne@69: extern int Tdbc_Init(Tcl_Interp* interp); jpayne@69: #else jpayne@69: DLLIMPORT int Tdbc_Init(Tcl_Interp* interp); jpayne@69: #endif jpayne@69: jpayne@69: #define Tdbc_InitStubs(interp) TdbcInitializeStubs(interp, \ jpayne@69: TDBC_VERSION, TDBC_STUBS_EPOCH, TDBC_STUBS_REVISION) jpayne@69: #if defined(USE_TDBC_STUBS) jpayne@69: TDBCAPI const char* TdbcInitializeStubs( jpayne@69: Tcl_Interp* interp, const char* version, int epoch, int revision); jpayne@69: #else jpayne@69: # define TdbcInitializeStubs(interp, version, epoch, revision) \ jpayne@69: (Tcl_PkgRequire(interp, "tdbc", version)) jpayne@69: #endif jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: /* jpayne@69: * TDBC_VERSION and TDBC_PATCHLEVEL here must match the ones that jpayne@69: * appear near the top of configure.ac. jpayne@69: */ jpayne@69: jpayne@69: #define TDBC_VERSION "1.1" jpayne@69: #define TDBC_PATCHLEVEL "1.1.5" jpayne@69: jpayne@69: /* jpayne@69: * Include the Stubs declarations for the public API, generated from jpayne@69: * tdbc.decls. jpayne@69: */ jpayne@69: jpayne@69: #include "tdbcDecls.h" jpayne@69: jpayne@69: #endif jpayne@69: jpayne@69: /* jpayne@69: * Local Variables: jpayne@69: * mode: c jpayne@69: * c-basic-offset: 4 jpayne@69: * fill-column: 78 jpayne@69: * End: jpayne@69: */