jpayne@69: /* jpayne@69: * tdbcDecls.h -- jpayne@69: * jpayne@69: * Exported Stubs declarations for Tcl DataBaseConnectivity (TDBC). jpayne@69: * jpayne@69: * This file is (mostly) generated automatically from tdbc.decls jpayne@69: * jpayne@69: * Copyright (c) 2008 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: /* !BEGIN!: Do not edit below this line. */ jpayne@69: jpayne@69: #define TDBC_STUBS_EPOCH 0 jpayne@69: #define TDBC_STUBS_REVISION 3 jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: /* jpayne@69: * Exported function declarations: jpayne@69: */ jpayne@69: jpayne@69: /* 0 */ jpayne@69: TDBCAPI int Tdbc_Init_ (Tcl_Interp* interp); jpayne@69: /* 1 */ jpayne@69: TDBCAPI Tcl_Obj* Tdbc_TokenizeSql (Tcl_Interp* interp, jpayne@69: const char* statement); jpayne@69: /* 2 */ jpayne@69: TDBCAPI const char* Tdbc_MapSqlState (const char* sqlstate); jpayne@69: jpayne@69: typedef struct TdbcStubs { jpayne@69: int magic; jpayne@69: int epoch; jpayne@69: int revision; jpayne@69: void *hooks; jpayne@69: jpayne@69: int (*tdbc_Init_) (Tcl_Interp* interp); /* 0 */ jpayne@69: Tcl_Obj* (*tdbc_TokenizeSql) (Tcl_Interp* interp, const char* statement); /* 1 */ jpayne@69: const char* (*tdbc_MapSqlState) (const char* sqlstate); /* 2 */ jpayne@69: } TdbcStubs; jpayne@69: jpayne@69: extern const TdbcStubs *tdbcStubsPtr; jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: #if defined(USE_TDBC_STUBS) jpayne@69: jpayne@69: /* jpayne@69: * Inline function declarations: jpayne@69: */ jpayne@69: jpayne@69: #define Tdbc_Init_ \ jpayne@69: (tdbcStubsPtr->tdbc_Init_) /* 0 */ jpayne@69: #define Tdbc_TokenizeSql \ jpayne@69: (tdbcStubsPtr->tdbc_TokenizeSql) /* 1 */ jpayne@69: #define Tdbc_MapSqlState \ jpayne@69: (tdbcStubsPtr->tdbc_MapSqlState) /* 2 */ jpayne@69: jpayne@69: #endif /* defined(USE_TDBC_STUBS) */ jpayne@69: jpayne@69: /* !END!: Do not edit above this line. */