debugger_config.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * $Id$
  3. *
  4. * This file is part of SIP-router, a free SIP server.
  5. *
  6. * SIP-router is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version
  10. *
  11. * SIP-router is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. *
  20. */
  21. /*!
  22. * \file
  23. * \brief Debugger :: Configuration
  24. * \ingroup debugger
  25. */
  26. #include "../../cfg/cfg.h"
  27. #include "debugger_config.h"
  28. struct cfg_group_dbg default_dbg_cfg = {
  29. 0, /* level_mode */
  30. 0 /* hash_size */
  31. };
  32. void *dbg_cfg = &default_dbg_cfg;
  33. cfg_def_t dbg_cfg_def[] = {
  34. {"mod_level_mode", CFG_VAR_INT|CFG_ATOMIC, 0, 1,
  35. dbg_level_mode_fixup, 0,
  36. "Enable or disable per module log level (0 - disabled, 1 - enabled)"},
  37. {"mod_hash_size", CFG_VAR_INT|CFG_READONLY, 0, 0,
  38. 0, 0,
  39. "power of two as size of internal hash table to store levels per module"},
  40. {0, 0, 0, 0, 0, 0}
  41. };