km_db_mysql.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * $Id$
  3. *
  4. * MySQL module interface
  5. *
  6. * Copyright (C) 2001-2003 FhG Fokus
  7. * Copyright (C) 2008 1&1 Internet AG
  8. *
  9. * This file is part of Kamailio, a free SIP server.
  10. *
  11. * Kamailio is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version
  15. *
  16. * Kamailio is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  24. *
  25. * History:
  26. * --------
  27. * 2003-03-11 updated to the new module exports interface (andrei)
  28. * 2003-03-16 flags export parameter added (janakj)
  29. */
  30. /*! \file
  31. * \brief DB_MYSQL :: Core
  32. * \ingroup db_mysql
  33. * Module: \ref db_mysql
  34. */
  35. #ifndef KM_DB_MOD_H
  36. #define KM_DB_MOD_H
  37. #include "../../lib/srdb1/db.h"
  38. extern unsigned int db_mysql_timeout_interval;
  39. extern unsigned int db_mysql_auto_reconnect;
  40. extern unsigned int db_mysql_insert_all_delayed;
  41. extern unsigned int db_mysql_update_affected_found;
  42. int db_mysql_bind_api(db_func_t *dbb);
  43. int kam_mysql_mod_init(void);
  44. /**
  45. * Allocate a buffer for database module
  46. * No function should be called before this
  47. * \return zero on success, negative value on failure
  48. */
  49. int db_mysql_alloc_buffer(void);
  50. #endif /* KM_DB_MOD_H */