2
0

km_db_mysql.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * MySQL module interface
  3. *
  4. * Copyright (C) 2001-2003 FhG Fokus
  5. * Copyright (C) 2008 1&1 Internet AG
  6. *
  7. * This file is part of Kamailio, a free SIP server.
  8. *
  9. * Kamailio 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. * Kamailio is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. */
  24. /*! \file
  25. * \brief DB_MYSQL :: Core
  26. * \ingroup db_mysql
  27. * Module: \ref db_mysql
  28. */
  29. #ifndef KM_DB_MOD_H
  30. #define KM_DB_MOD_H
  31. #include "../../lib/srdb1/db.h"
  32. extern unsigned int db_mysql_timeout_interval;
  33. extern unsigned int db_mysql_auto_reconnect;
  34. extern unsigned int db_mysql_insert_all_delayed;
  35. extern unsigned int db_mysql_update_affected_found;
  36. int db_mysql_bind_api(db_func_t *dbb);
  37. int kam_mysql_mod_init(void);
  38. /**
  39. * Allocate a buffer for database module
  40. * No function should be called before this
  41. * \return zero on success, negative value on failure
  42. */
  43. int db_mysql_alloc_buffer(void);
  44. #endif /* KM_DB_MOD_H */