4
* $Id: dlproc.c 2613 1999-06-01 15:32:12Z VZ $
6
* Load driver and resolve driver's function entry point
8
* The iODBC driver manager.
10
* Copyright (C) 1995 by Ke Jin <kejin@empress.com>
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.
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.
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.
43
_iodbcdm_getproc (HDBC hdbc, int idx)
45
DBC_t FAR *pdbc = (DBC_t FAR *) hdbc;
49
if (idx <= 0 || idx > SQL_EXT_API_LAST)
50
/* first entry naver used */
52
return SQL_NULL_HPROC;
55
penv = (ENV_t FAR *) (pdbc->henv);
59
return SQL_NULL_HPROC;
62
phproc = penv->dllproc_tab + idx;
64
if (*phproc == SQL_NULL_HPROC)
70
en_idx = odbcapi_symtab[i].en_idx;
72
if (en_idx == en_NullProc)
79
*phproc = _iodbcdm_dllproc (penv->hdll,
80
odbcapi_symtab[i].symbol);
92
_iodbcdm_dllopen (char FAR * path)
94
return (HDLL) DLL_OPEN (path);
99
_iodbcdm_dllproc (HDLL hdll, char FAR * sym)
101
return (HPROC) DLL_PROC (hdll, sym);
106
_iodbcdm_dllclose (HDLL hdll)