Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-05-18 08:30:22

0001 /*
0002  * tdbcDecls.h --
0003  *
0004  *  Exported Stubs declarations for Tcl DataBaseConnectivity (TDBC).
0005  *
0006  * This file is (mostly) generated automatically from tdbc.decls
0007  *
0008  * Copyright (c) 2008 by Kevin B. Kenny.
0009  *
0010  * See the file "license.terms" for information on usage and redistribution of
0011  * this file, and for a DISCLAIMER OF ALL WARRANTIES.
0012  *
0013  * RCS: @(#) $Id$
0014  *
0015  */
0016 
0017 /* !BEGIN!: Do not edit below this line. */
0018 
0019 #define TDBC_STUBS_EPOCH 0
0020 #define TDBC_STUBS_REVISION 3
0021 
0022 #ifdef __cplusplus
0023 extern "C" {
0024 #endif
0025 
0026 /*
0027  * Exported function declarations:
0028  */
0029 
0030 /* 0 */
0031 TDBCAPI int     Tdbc_Init_ (Tcl_Interp* interp);
0032 /* 1 */
0033 TDBCAPI Tcl_Obj*    Tdbc_TokenizeSql (Tcl_Interp* interp,
0034                 const char* statement);
0035 /* 2 */
0036 TDBCAPI const char* Tdbc_MapSqlState (const char* sqlstate);
0037 
0038 typedef struct TdbcStubs {
0039     int magic;
0040     int epoch;
0041     int revision;
0042     void *hooks;
0043 
0044     int (*tdbc_Init_) (Tcl_Interp* interp); /* 0 */
0045     Tcl_Obj* (*tdbc_TokenizeSql) (Tcl_Interp* interp, const char* statement); /* 1 */
0046     const char* (*tdbc_MapSqlState) (const char* sqlstate); /* 2 */
0047 } TdbcStubs;
0048 
0049 extern const TdbcStubs *tdbcStubsPtr;
0050 
0051 #ifdef __cplusplus
0052 }
0053 #endif
0054 
0055 #if defined(USE_TDBC_STUBS)
0056 
0057 /*
0058  * Inline function declarations:
0059  */
0060 
0061 #define Tdbc_Init_ \
0062     (tdbcStubsPtr->tdbc_Init_) /* 0 */
0063 #define Tdbc_TokenizeSql \
0064     (tdbcStubsPtr->tdbc_TokenizeSql) /* 1 */
0065 #define Tdbc_MapSqlState \
0066     (tdbcStubsPtr->tdbc_MapSqlState) /* 2 */
0067 
0068 #endif /* defined(USE_TDBC_STUBS) */
0069 
0070 /* !END!: Do not edit above this line. */