1/*
2 *  henv.ci
3 *
4 *  $Id: henv.ci 1446 1999-01-22 10:52:42Z RR $
5 *
6 *  Function names
7 *
8 *  The iODBC driver manager.
9 *
10 *  Copyright (C) 1995 by Ke Jin <kejin@empress.com>
11 *
12 *  This library is free software; you can redistribute it and/or
13 *  modify it under the terms of the GNU Library General Public
14 *  License as published by the Free Software Foundation; either
15 *  version 2 of the License, or (at your option) any later version.
16 *
17 *  This library is distributed in the hope that it will be useful,
18 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
19 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20 *  Library General Public License for more details.
21 *
22 *  You should have received a copy of the GNU Library General Public
23 *  License along with this library; if not, write to the Free
24 *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 */
26
27/* There are some exceptions :
28 * on FreeBSD 2.x      CLI_NAME_PREFIX is defined in Config.mk as "_SQL"
29 * on HP/UX s300/s400, CLI_NAME_PREFIX is defined in Config.mk as "_SQL"
30 * on AIX 3.x 4.x,     CLI_NAME_PREFIX is defined in Config.mk as ".SQL"
31 */
32#ifndef	CLI_NAME_PREFIX
33#  define CLI_NAME_PREFIX	"SQL"	/* using call by value prefix */
34#else
35# ifdef NEED_USCORE
36#  define CLI_NAME_PREFIX	"_SQL"
37# endif
38#endif
39
40static struct
41  {
42    int en_idx;
43    char *symbol;
44  }
45odbcapi_symtab[] = {
46
47#if (ODBCVER >= 0x0300)
48        { en_AllocHandle          CLI_NAME_PREFIX "AllocHandle" },
49        { en_FreeHandle           CLI_NAME_PREFIX "FreeHandle" },
50#endif
51        { en_AllocEnv,            CLI_NAME_PREFIX "AllocEnv" },
52        { en_AllocConnect,        CLI_NAME_PREFIX "AllocConnect" },
53        { en_Connect,             CLI_NAME_PREFIX "Connect" },
54        { en_DriverConnect,       CLI_NAME_PREFIX "DriverConnect" },
55        { en_BrowseConnect,       CLI_NAME_PREFIX "BrowseConnect" },
56
57        { en_DataSources,         CLI_NAME_PREFIX "DataSources" },
58        { en_Drivers,             CLI_NAME_PREFIX "Driver" },
59        { en_GetInfo,             CLI_NAME_PREFIX "GetInfo" },
60        { en_GetFunctions,        CLI_NAME_PREFIX "GetFunctions" },
61        { en_GetTypeInfo,         CLI_NAME_PREFIX "GetTypeInfo" },
62
63        { en_SetConnectOption,    CLI_NAME_PREFIX "SetConnectOption" },
64        { en_GetConnectOption,    CLI_NAME_PREFIX "GetConnectOption" },
65        { en_SetStmtOption,       CLI_NAME_PREFIX "SetStmtOption" },
66        { en_GetStmtOption,       CLI_NAME_PREFIX "GetStmtOption" },
67
68        { en_AllocStmt,           CLI_NAME_PREFIX "AllocStmt" },
69        { en_Prepare,             CLI_NAME_PREFIX "Prepare" },
70        { en_BindParameter,       CLI_NAME_PREFIX "BindParameter" },
71        { en_ParamOptions,        CLI_NAME_PREFIX "ParamOptions" },
72        { en_GetCursorName,       CLI_NAME_PREFIX "GetCursorName" },
73        { en_SetCursorName,       CLI_NAME_PREFIX "SetCursorName" },
74        { en_SetScrollOptions,    CLI_NAME_PREFIX "SetScrollOptions" },
75        { en_SetParam,            CLI_NAME_PREFIX "SetParam" },
76
77        { en_Execute,             CLI_NAME_PREFIX "Execute" },
78        { en_ExecDirect,          CLI_NAME_PREFIX "ExecDirect" },
79        { en_NativeSql,           CLI_NAME_PREFIX "NativeSql" },
80        { en_DescribeParam,       CLI_NAME_PREFIX "DescribeParam" },
81        { en_NumParams,           CLI_NAME_PREFIX "NumParams" },
82        { en_ParamData,           CLI_NAME_PREFIX "ParamData" },
83        { en_PutData,             CLI_NAME_PREFIX "PutData" },
84
85        { en_RowCount,            CLI_NAME_PREFIX "RowCount" },
86        { en_NumResultCols,       CLI_NAME_PREFIX "NumResultCols" },
87        { en_DescribeCol,         CLI_NAME_PREFIX "DescribeCol" },
88        { en_ColAttributes,       CLI_NAME_PREFIX "ColAttributes" },
89        { en_BindCol,             CLI_NAME_PREFIX "BindCol" },
90        { en_Fetch,               CLI_NAME_PREFIX "Fetch" },
91        { en_ExtendedFetch,       CLI_NAME_PREFIX "ExtendedFetch" },
92        { en_GetData,             CLI_NAME_PREFIX "GetData" },
93        { en_SetPos,              CLI_NAME_PREFIX "SetPos" },
94        { en_MoreResults,         CLI_NAME_PREFIX "MoreResults" },
95        { en_Error,               CLI_NAME_PREFIX "Error" },
96
97        { en_ColumnPrivileges,    CLI_NAME_PREFIX "ColumnPrivileges" },
98        { en_Columns,             CLI_NAME_PREFIX "Columns" },
99        { en_ForeignKeys,         CLI_NAME_PREFIX "ForeignKeys" },
100        { en_PrimaryKeys,         CLI_NAME_PREFIX "PrimaryKeys" },
101        { en_ProcedureColumns,    CLI_NAME_PREFIX "ProcedureColumns" },
102        { en_Procedures,          CLI_NAME_PREFIX "Procedures" },
103        { en_SpecialColumns,      CLI_NAME_PREFIX "SpecialColumns" },
104        { en_Statistics,          CLI_NAME_PREFIX "Statistics" },
105        { en_TablePrivileges,     CLI_NAME_PREFIX "TablePrivileges" },
106        { en_Tables,              CLI_NAME_PREFIX "Tables" },
107
108        { en_FreeStmt,            CLI_NAME_PREFIX "FreeStmt" },
109        { en_Cancel,              CLI_NAME_PREFIX "Cancel" },
110        { en_Transact,            CLI_NAME_PREFIX "Transact" },
111
112        { en_Disconnect,          CLI_NAME_PREFIX "Disconnect" },
113        { en_FreeConnect,         CLI_NAME_PREFIX "FreeConnect" },
114        { en_FreeEnv,             CLI_NAME_PREFIX "FreeEnv" },
115
116        { en_NullProc,            NULL }
117};
118