alpar@1: /* glpsql.h */ alpar@1: alpar@1: /*********************************************************************** alpar@1: * This code is part of GLPK (GNU Linear Programming Kit). alpar@1: * alpar@1: * Author: Heinrich Schuchardt . alpar@1: * alpar@1: * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, alpar@1: * 2009, 2010 Andrew Makhorin, Department for Applied Informatics, alpar@1: * Moscow Aviation Institute, Moscow, Russia. All rights reserved. alpar@1: * E-mail: . alpar@1: * alpar@1: * GLPK is free software: you can redistribute it and/or modify it alpar@1: * under the terms of the GNU General Public License as published by alpar@1: * the Free Software Foundation, either version 3 of the License, or alpar@1: * (at your option) any later version. alpar@1: * alpar@1: * GLPK is distributed in the hope that it will be useful, but WITHOUT alpar@1: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY alpar@1: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public alpar@1: * License for more details. alpar@1: * alpar@1: * You should have received a copy of the GNU General Public License alpar@1: * along with GLPK. If not, see . alpar@1: ***********************************************************************/ alpar@1: alpar@1: #ifndef GLPSQL_H alpar@1: #define GLPSQL_H alpar@1: alpar@1: #define db_iodbc_open _glp_db_iodbc_open alpar@1: void *db_iodbc_open(TABDCA *dca, int mode); alpar@1: /* open iODBC database connection */ alpar@1: alpar@1: #define db_iodbc_read _glp_db_iodbc_read alpar@1: int db_iodbc_read(TABDCA *dca, void *link); alpar@1: /* read data from iODBC */ alpar@1: alpar@1: #define db_iodbc_write _glp_db_iodbc_write alpar@1: int db_iodbc_write(TABDCA *dca, void *link); alpar@1: /* write data to iODBC */ alpar@1: alpar@1: #define db_iodbc_close _glp_db_iodbc_close alpar@1: int db_iodbc_close(TABDCA *dca, void *link); alpar@1: /* close iODBC database connection */ alpar@1: alpar@1: #define db_mysql_open _glp_db_mysql_open alpar@1: void *db_mysql_open(TABDCA *dca, int mode); alpar@1: /* open MySQL database connection */ alpar@1: alpar@1: #define db_mysql_read _glp_db_mysql_read alpar@1: int db_mysql_read(TABDCA *dca, void *link); alpar@1: /* read data from MySQL */ alpar@1: alpar@1: #define db_mysql_write _glp_db_mysql_write alpar@1: int db_mysql_write(TABDCA *dca, void *link); alpar@1: /* write data to MySQL */ alpar@1: alpar@1: #define db_mysql_close _glp_db_mysql_close alpar@1: int db_mysql_close(TABDCA *dca, void *link); alpar@1: /* close MySQL database connection */ alpar@1: alpar@1: #endif alpar@1: alpar@1: /* eof */