pg_res.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * $Id$
  3. *
  4. * PostgreSQL Database Driver for SER
  5. *
  6. * Portions Copyright (C) 2001-2003 FhG FOKUS
  7. * Copyright (C) 2003 August.Net Services, LLC
  8. * Portions Copyright (C) 2005-2008 iptelorg GmbH
  9. *
  10. * This file is part of SER, a free SIP server.
  11. *
  12. * SER is free software; you can redistribute it and/or modify it under the
  13. * terms of the GNU General Public License as published by the Free Software
  14. * Foundation; either version 2 of the License, or (at your option) any later
  15. * version
  16. *
  17. * For a license to use the ser software under conditions other than those
  18. * described here, or to purchase support for this software, please contact
  19. * iptel.org by e-mail at the following addresses: [email protected]
  20. *
  21. * SER is distributed in the hope that it will be useful, but WITHOUT ANY
  22. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  23. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  24. * details.
  25. *
  26. * You should have received a copy of the GNU General Public License along
  27. * with this program; if not, write to the Free Software Foundation, Inc., 59
  28. * Temple Place, Suite 330, Boston, MA 02111-1307 USA
  29. */
  30. #ifndef _PG_RES_H
  31. #define _PG_RES_H
  32. /** \addtogroup postgres
  33. * @{
  34. */
  35. /** \file
  36. * Data structures and functions to convert results obtained from PostgreSQL
  37. * servers.
  38. */
  39. #include "../../lib/srdb2/db_drv.h"
  40. #include "../../lib/srdb2/db_res.h"
  41. #include <libpq-fe.h>
  42. struct pg_res {
  43. db_drv_t gen;
  44. PGresult* res;
  45. int row, rows;
  46. };
  47. int pg_res(db_res_t* res);
  48. /** @} */
  49. #endif /* _PG_RES_H */