glpsql.h 2.1 KB

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