mysql_mod.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * MySQL module interface
  3. *
  4. * Copyright (C) 2001-2003 FhG Fokus
  5. *
  6. * This file is part of Kamailio, a free SIP server.
  7. *
  8. * Kamailio is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version
  12. *
  13. * Kamailio is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. */
  22. #ifndef _MYSQL_MOD_H
  23. #define _MYSQL_MOD_H
  24. #include "../../counters.h"
  25. /* counter struct
  26. */
  27. struct mysql_counters_h {
  28. counter_handle_t driver_err;
  29. };
  30. /* defined in km_dbase.c */
  31. extern struct mysql_counters_h mysql_cnts_h;
  32. /** @defgroup mysql MySQL db driver
  33. * @ingroup DB_API
  34. */
  35. /** @{ */
  36. extern int my_ping_interval;
  37. extern unsigned int my_connect_to;
  38. extern unsigned int my_send_to;
  39. extern unsigned int my_recv_to;
  40. extern unsigned long my_client_ver;
  41. extern unsigned int my_retries;
  42. /** @} */
  43. #endif /* _MYSQL_MOD_H */