Files
mdbtools/src/odbc/connectparams.h
2001-07-10 22:36:20 +00:00

43 lines
1.4 KiB
C

/* MDB Tools - A library for reading MS Access database file
* Copyright (C) 2000 Brian Bruns
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef _ODBC_INI_LOAD_
#define _ODBC_INI_LOAD_
#include <glib.h>
typedef struct
{
GString* dsnName;
GString* iniFileName;
GHashTable* table;
} ConnectParams;
ConnectParams* NewConnectParams ();
void FreeConnectParams (ConnectParams* params);
gboolean LookupDSN (ConnectParams* params, const gchar* dsnName);
gchar* GetConnectParam (ConnectParams* params, const gchar* paramName);
void SetConnectString (ConnectParams* params, const gchar* connectString);
void DumpParams (ConnectParams* params, FILE* output);
gchar* ExtractDSN (ConnectParams* params, const gchar* connectString);
#endif