Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. debug.h
  5. Abstract:
  6. Debug definitions for H.323 TAPI Service Provider.
  7. Environment:
  8. User Mode - Win32
  9. Revision History:
  10. --*/
  11. #ifndef _INC_DEBUG
  12. #define _INC_DEBUG
  13. ///////////////////////////////////////////////////////////////////////////////
  14. // //
  15. // Global variables //
  16. // //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. extern DWORD g_dwLogLevel;
  19. ///////////////////////////////////////////////////////////////////////////////
  20. // //
  21. // Debug definitions //
  22. // //
  23. ///////////////////////////////////////////////////////////////////////////////
  24. #define DEBUG_LEVEL_SILENT 0x0
  25. #define DEBUG_LEVEL_FATAL 0x1
  26. #define DEBUG_LEVEL_ERROR 0x2
  27. #define DEBUG_LEVEL_WARNING 0x3
  28. #define DEBUG_LEVEL_TRACE 0x4
  29. #define DEBUG_LEVEL_VERBOSE 0x5
  30. #define DEBUG_OUTPUT_NONE 0x0
  31. #define DEBUG_OUTPUT_FILE 0x1
  32. #define DEBUG_OUTPUT_DEBUGGER 0x2
  33. #define H323_DEBUG_LOGTYPE DEBUG_OUTPUT_FILE | DEBUG_OUTPUT_DEBUGGER
  34. #define H323_DEBUG_LOGLEVEL DEBUG_LEVEL_SILENT
  35. #define H323_DEBUG_LOGFILE "H323DBG.LOG"
  36. #define H323_DEBUG_MAXPATH 128
  37. ///////////////////////////////////////////////////////////////////////////////
  38. // //
  39. // Public prototypes //
  40. // //
  41. ///////////////////////////////////////////////////////////////////////////////
  42. VOID
  43. H323DbgPrint(
  44. DWORD dwLevel,
  45. LPSTR szFormat,
  46. ...
  47. );
  48. #if DBG
  49. #define H323DBG(_x_) H323DbgPrint _x_
  50. #else
  51. #define H323DBG(_x_)
  52. #endif
  53. PSTR
  54. H323StatusToString(
  55. DWORD dwStatus
  56. );
  57. PSTR
  58. H323IndicationToString(
  59. BYTE bIndication
  60. );
  61. PSTR
  62. H323CallStateToString(
  63. DWORD dwCallState
  64. );
  65. PSTR
  66. H323FeedbackToString(
  67. DWORD dwStatus
  68. );
  69. PSTR
  70. H245StatusToString(
  71. DWORD dwStatus
  72. );
  73. PSTR
  74. CCRejectReasonToString(
  75. DWORD dwReason
  76. );
  77. PSTR
  78. H323DirToString(
  79. DWORD dwDir
  80. );
  81. PSTR
  82. H323DataTypeToString(
  83. DWORD dwDataType
  84. );
  85. PSTR
  86. H323ClientTypeToString(
  87. DWORD dwClientType
  88. );
  89. PSTR
  90. H323MiscCommandToString(
  91. DWORD dwMiscCommand
  92. );
  93. PSTR
  94. H323MSPCommandToString(
  95. DWORD dwCommand
  96. );
  97. PSTR
  98. H323AddressTypeToString(
  99. DWORD dwAddressType
  100. );
  101. #endif // _INC_DEBUG