debugger_api.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /**
  2. * $Id$
  3. *
  4. * Copyright (C) 2010 Daniel-Constantin Mierla (asipto.com)
  5. *
  6. * This file is part of Kamailio, a free SIP server.
  7. *
  8. * This file 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. * This file 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. */
  23. #ifndef _DEBUGGER_API_H_
  24. #define _DEBUGGER_API_H_
  25. #include "../../route_struct.h"
  26. int dbg_add_breakpoint(struct action *a, int bpon);
  27. int dbg_init_bp_list(void);
  28. int dbg_init_pid_list(void);
  29. int dbg_init_mypid(void);
  30. int dbg_init_rpc(void);
  31. int dbg_init_mod_levels(int _dbg_mod_hash_size);
  32. int dbg_set_mod_debug_level(char *mname, int mnlen, int *mlevel);
  33. void dbg_enable_mod_levels(void);
  34. int dbg_init_pvcache(void);
  35. void dbg_enable_log_assign(void);
  36. /*!
  37. * \brief Callback function that checks if reset_msgid is set
  38. * and modifies msg->id if necessary.
  39. * \param msg SIP message
  40. * \param flags unused
  41. * \param bar unused
  42. * \return 1 on success, -1 on failure
  43. */
  44. int dbg_msgid_filter(struct sip_msg *msg, unsigned int flags, void *bar);
  45. #define DBG_DP_NULL 1
  46. #define DBG_DP_AVP 2
  47. #define DBG_DP_SCRIPTVAR 4
  48. #define DBG_DP_XAVP 8
  49. #define DBG_DP_OTHER 16
  50. #define DBG_DP_ALL 31
  51. int dbg_dump_json(struct sip_msg* msg, unsigned int mask, int level);
  52. #endif