src/glpsql.h
author Alpar Juttner <alpar@cs.elte.hu>
Mon, 06 Dec 2010 13:09:21 +0100
changeset 1 c445c931472f
permissions -rw-r--r--
Import glpk-4.45

- Generated files and doc/notes are removed
alpar@1
     1
/* glpsql.h */
alpar@1
     2
alpar@1
     3
/***********************************************************************
alpar@1
     4
*  This code is part of GLPK (GNU Linear Programming Kit).
alpar@1
     5
*
alpar@1
     6
*  Author: Heinrich Schuchardt <heinrich.schuchardt@gmx.de>.
alpar@1
     7
*
alpar@1
     8
*  Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
alpar@1
     9
*  2009, 2010 Andrew Makhorin, Department for Applied Informatics,
alpar@1
    10
*  Moscow Aviation Institute, Moscow, Russia. All rights reserved.
alpar@1
    11
*  E-mail: <mao@gnu.org>.
alpar@1
    12
*
alpar@1
    13
*  GLPK is free software: you can redistribute it and/or modify it
alpar@1
    14
*  under the terms of the GNU General Public License as published by
alpar@1
    15
*  the Free Software Foundation, either version 3 of the License, or
alpar@1
    16
*  (at your option) any later version.
alpar@1
    17
*
alpar@1
    18
*  GLPK is distributed in the hope that it will be useful, but WITHOUT
alpar@1
    19
*  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
alpar@1
    20
*  or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
alpar@1
    21
*  License for more details.
alpar@1
    22
*
alpar@1
    23
*  You should have received a copy of the GNU General Public License
alpar@1
    24
*  along with GLPK. If not, see <http://www.gnu.org/licenses/>.
alpar@1
    25
***********************************************************************/
alpar@1
    26
alpar@1
    27
#ifndef GLPSQL_H
alpar@1
    28
#define GLPSQL_H
alpar@1
    29
alpar@1
    30
#define db_iodbc_open _glp_db_iodbc_open
alpar@1
    31
void *db_iodbc_open(TABDCA *dca, int mode);
alpar@1
    32
/* open iODBC database connection */
alpar@1
    33
alpar@1
    34
#define db_iodbc_read _glp_db_iodbc_read
alpar@1
    35
int db_iodbc_read(TABDCA *dca, void *link);
alpar@1
    36
/* read data from iODBC */
alpar@1
    37
alpar@1
    38
#define db_iodbc_write _glp_db_iodbc_write
alpar@1
    39
int db_iodbc_write(TABDCA *dca, void *link);
alpar@1
    40
/* write data to iODBC */
alpar@1
    41
alpar@1
    42
#define db_iodbc_close _glp_db_iodbc_close
alpar@1
    43
int db_iodbc_close(TABDCA *dca, void *link);
alpar@1
    44
/* close iODBC database connection */
alpar@1
    45
alpar@1
    46
#define db_mysql_open _glp_db_mysql_open
alpar@1
    47
void *db_mysql_open(TABDCA *dca, int mode);
alpar@1
    48
/* open MySQL database connection */
alpar@1
    49
alpar@1
    50
#define db_mysql_read _glp_db_mysql_read
alpar@1
    51
int db_mysql_read(TABDCA *dca, void *link);
alpar@1
    52
/* read data from MySQL */
alpar@1
    53
alpar@1
    54
#define db_mysql_write _glp_db_mysql_write
alpar@1
    55
int db_mysql_write(TABDCA *dca, void *link);
alpar@1
    56
/* write data to MySQL */
alpar@1
    57
alpar@1
    58
#define db_mysql_close _glp_db_mysql_close
alpar@1
    59
int db_mysql_close(TABDCA *dca, void *link);
alpar@1
    60
/* close MySQL database connection */
alpar@1
    61
alpar@1
    62
#endif
alpar@1
    63
alpar@1
    64
/* eof */