Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/tdbcDecls.h @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@69 | 1 /* |
jpayne@69 | 2 * tdbcDecls.h -- |
jpayne@69 | 3 * |
jpayne@69 | 4 * Exported Stubs declarations for Tcl DataBaseConnectivity (TDBC). |
jpayne@69 | 5 * |
jpayne@69 | 6 * This file is (mostly) generated automatically from tdbc.decls |
jpayne@69 | 7 * |
jpayne@69 | 8 * Copyright (c) 2008 by Kevin B. Kenny. |
jpayne@69 | 9 * |
jpayne@69 | 10 * See the file "license.terms" for information on usage and redistribution of |
jpayne@69 | 11 * this file, and for a DISCLAIMER OF ALL WARRANTIES. |
jpayne@69 | 12 * |
jpayne@69 | 13 * RCS: @(#) $Id$ |
jpayne@69 | 14 * |
jpayne@69 | 15 */ |
jpayne@69 | 16 |
jpayne@69 | 17 /* !BEGIN!: Do not edit below this line. */ |
jpayne@69 | 18 |
jpayne@69 | 19 #define TDBC_STUBS_EPOCH 0 |
jpayne@69 | 20 #define TDBC_STUBS_REVISION 3 |
jpayne@69 | 21 |
jpayne@69 | 22 #ifdef __cplusplus |
jpayne@69 | 23 extern "C" { |
jpayne@69 | 24 #endif |
jpayne@69 | 25 |
jpayne@69 | 26 /* |
jpayne@69 | 27 * Exported function declarations: |
jpayne@69 | 28 */ |
jpayne@69 | 29 |
jpayne@69 | 30 /* 0 */ |
jpayne@69 | 31 TDBCAPI int Tdbc_Init_ (Tcl_Interp* interp); |
jpayne@69 | 32 /* 1 */ |
jpayne@69 | 33 TDBCAPI Tcl_Obj* Tdbc_TokenizeSql (Tcl_Interp* interp, |
jpayne@69 | 34 const char* statement); |
jpayne@69 | 35 /* 2 */ |
jpayne@69 | 36 TDBCAPI const char* Tdbc_MapSqlState (const char* sqlstate); |
jpayne@69 | 37 |
jpayne@69 | 38 typedef struct TdbcStubs { |
jpayne@69 | 39 int magic; |
jpayne@69 | 40 int epoch; |
jpayne@69 | 41 int revision; |
jpayne@69 | 42 void *hooks; |
jpayne@69 | 43 |
jpayne@69 | 44 int (*tdbc_Init_) (Tcl_Interp* interp); /* 0 */ |
jpayne@69 | 45 Tcl_Obj* (*tdbc_TokenizeSql) (Tcl_Interp* interp, const char* statement); /* 1 */ |
jpayne@69 | 46 const char* (*tdbc_MapSqlState) (const char* sqlstate); /* 2 */ |
jpayne@69 | 47 } TdbcStubs; |
jpayne@69 | 48 |
jpayne@69 | 49 extern const TdbcStubs *tdbcStubsPtr; |
jpayne@69 | 50 |
jpayne@69 | 51 #ifdef __cplusplus |
jpayne@69 | 52 } |
jpayne@69 | 53 #endif |
jpayne@69 | 54 |
jpayne@69 | 55 #if defined(USE_TDBC_STUBS) |
jpayne@69 | 56 |
jpayne@69 | 57 /* |
jpayne@69 | 58 * Inline function declarations: |
jpayne@69 | 59 */ |
jpayne@69 | 60 |
jpayne@69 | 61 #define Tdbc_Init_ \ |
jpayne@69 | 62 (tdbcStubsPtr->tdbc_Init_) /* 0 */ |
jpayne@69 | 63 #define Tdbc_TokenizeSql \ |
jpayne@69 | 64 (tdbcStubsPtr->tdbc_TokenizeSql) /* 1 */ |
jpayne@69 | 65 #define Tdbc_MapSqlState \ |
jpayne@69 | 66 (tdbcStubsPtr->tdbc_MapSqlState) /* 2 */ |
jpayne@69 | 67 |
jpayne@69 | 68 #endif /* defined(USE_TDBC_STUBS) */ |
jpayne@69 | 69 |
jpayne@69 | 70 /* !END!: Do not edit above this line. */ |