db_rec.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * $Id$
  3. *
  4. * Copyright (C) 2001-2003 FhG FOKUS
  5. * Copyright (C) 2006-2007 iptelorg GmbH
  6. *
  7. * This file is part of ser, a free SIP server.
  8. *
  9. * ser is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version
  13. *
  14. * For a license to use the ser software under conditions
  15. * other than those described here, or to purchase support for this
  16. * software, please contact iptel.org by e-mail at the following addresses:
  17. * [email protected]
  18. *
  19. * ser is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program; if not, write to the Free Software
  26. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  27. */
  28. #ifndef _DB_REC_H
  29. #define _DB_REC_H 1
  30. /** \ingroup DB_API
  31. * @{
  32. */
  33. #include "db_gen.h"
  34. #include "db_res.h"
  35. #include "db_fld.h"
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif /* __cplusplus */
  39. typedef struct db_rec {
  40. db_gen_t gen; /* Generic part of the structure */
  41. struct db_res* res; /* Result this record belongs to */
  42. db_fld_t* fld; /* Array of all fields in the record */
  43. } db_rec_t;
  44. struct db_rec* db_rec(struct db_res* res, db_fld_t* fld);
  45. void db_rec_free(struct db_rec* rec);
  46. #ifdef __cplusplus
  47. }
  48. #endif /* __cplusplus */
  49. /** @} */
  50. #endif /* _DB_REC_H */