1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/glpsql.h Mon Dec 06 13:09:21 2010 +0100
1.3 @@ -0,0 +1,64 @@
1.4 +/* glpsql.h */
1.5 +
1.6 +/***********************************************************************
1.7 +* This code is part of GLPK (GNU Linear Programming Kit).
1.8 +*
1.9 +* Author: Heinrich Schuchardt <heinrich.schuchardt@gmx.de>.
1.10 +*
1.11 +* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
1.12 +* 2009, 2010 Andrew Makhorin, Department for Applied Informatics,
1.13 +* Moscow Aviation Institute, Moscow, Russia. All rights reserved.
1.14 +* E-mail: <mao@gnu.org>.
1.15 +*
1.16 +* GLPK is free software: you can redistribute it and/or modify it
1.17 +* under the terms of the GNU General Public License as published by
1.18 +* the Free Software Foundation, either version 3 of the License, or
1.19 +* (at your option) any later version.
1.20 +*
1.21 +* GLPK is distributed in the hope that it will be useful, but WITHOUT
1.22 +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1.23 +* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
1.24 +* License for more details.
1.25 +*
1.26 +* You should have received a copy of the GNU General Public License
1.27 +* along with GLPK. If not, see <http://www.gnu.org/licenses/>.
1.28 +***********************************************************************/
1.29 +
1.30 +#ifndef GLPSQL_H
1.31 +#define GLPSQL_H
1.32 +
1.33 +#define db_iodbc_open _glp_db_iodbc_open
1.34 +void *db_iodbc_open(TABDCA *dca, int mode);
1.35 +/* open iODBC database connection */
1.36 +
1.37 +#define db_iodbc_read _glp_db_iodbc_read
1.38 +int db_iodbc_read(TABDCA *dca, void *link);
1.39 +/* read data from iODBC */
1.40 +
1.41 +#define db_iodbc_write _glp_db_iodbc_write
1.42 +int db_iodbc_write(TABDCA *dca, void *link);
1.43 +/* write data to iODBC */
1.44 +
1.45 +#define db_iodbc_close _glp_db_iodbc_close
1.46 +int db_iodbc_close(TABDCA *dca, void *link);
1.47 +/* close iODBC database connection */
1.48 +
1.49 +#define db_mysql_open _glp_db_mysql_open
1.50 +void *db_mysql_open(TABDCA *dca, int mode);
1.51 +/* open MySQL database connection */
1.52 +
1.53 +#define db_mysql_read _glp_db_mysql_read
1.54 +int db_mysql_read(TABDCA *dca, void *link);
1.55 +/* read data from MySQL */
1.56 +
1.57 +#define db_mysql_write _glp_db_mysql_write
1.58 +int db_mysql_write(TABDCA *dca, void *link);
1.59 +/* write data to MySQL */
1.60 +
1.61 +#define db_mysql_close _glp_db_mysql_close
1.62 +int db_mysql_close(TABDCA *dca, void *link);
1.63 +/* close MySQL database connection */
1.64 +
1.65 +#endif
1.66 +
1.67 +/* eof */