comparison src/debug.h @ 6721:acc4376ce062

[gaim-migrate @ 7248] Added some debug wrapper functions, like gaim_debug_info and such. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 03 Sep 2003 06:06:54 +0000
parents 565339a6eb86
children feb3d21a7794
comparison
equal deleted inserted replaced
6720:41120df7ed94 6721:acc4376ce062
29 * Debug levels. 29 * Debug levels.
30 */ 30 */
31 typedef enum 31 typedef enum
32 { 32 {
33 GAIM_DEBUG_ALL = 0, /**< All debug levels. */ 33 GAIM_DEBUG_ALL = 0, /**< All debug levels. */
34 GAIM_DEBUG_MISC, /**< General chatter. */ 34 GAIM_DEBUG_MISC, /**< General chatter. */
35 GAIM_DEBUG_INFO, /**< General operation Information. */ 35 GAIM_DEBUG_INFO, /**< General operation Information. */
36 GAIM_DEBUG_WARNING, /**< Warnings. */ 36 GAIM_DEBUG_WARNING, /**< Warnings. */
37 GAIM_DEBUG_ERROR, /**< Errors. */ 37 GAIM_DEBUG_ERROR, /**< Errors. */
38 GAIM_DEBUG_FATAL /**< Fatal errors. */ 38 GAIM_DEBUG_FATAL /**< Fatal errors. */
39 39
79 * @param format The format string. 79 * @param format The format string.
80 */ 80 */
81 void gaim_debug(GaimDebugLevel level, const char *category, 81 void gaim_debug(GaimDebugLevel level, const char *category,
82 const char *format, ...); 82 const char *format, ...);
83 83
84 /**
85 * Outputs misc. level debug information.
86 *
87 * This is a wrapper for gaim_debug(), and uses GAIM_DEBUG_MISC as
88 * the level.
89 *
90 * @param category The category (or @c NULL).
91 * @param format The format string.
92 *
93 * @see gaim_debug()
94 */
95 void gaim_debug_misc(const char *category, const char *format, ...);
96
97 /**
98 * Outputs info level debug information.
99 *
100 * This is a wrapper for gaim_debug(), and uses GAIM_DEBUG_INFO as
101 * the level.
102 *
103 * @param category The category (or @c NULL).
104 * @param format The format string.
105 *
106 * @see gaim_debug()
107 */
108 void gaim_debug_info(const char *category, const char *format, ...);
109
110 /**
111 * Outputs warning level debug information.
112 *
113 * This is a wrapper for gaim_debug(), and uses GAIM_DEBUG_WARNING as
114 * the level.
115 *
116 * @param category The category (or @c NULL).
117 * @param format The format string.
118 *
119 * @see gaim_debug()
120 */
121 void gaim_debug_warning(const char *category, const char *format, ...);
122
123 /**
124 * Outputs error level debug information.
125 *
126 * This is a wrapper for gaim_debug(), and uses GAIM_DEBUG_ERROR as
127 * the level.
128 *
129 * @param category The category (or @c NULL).
130 * @param format The format string.
131 *
132 * @see gaim_debug()
133 */
134 void gaim_debug_error(const char *category, const char *format, ...);
135
136 /**
137 * Outputs fatal error level debug information.
138 *
139 * This is a wrapper for gaim_debug(), and uses GAIM_DEBUG_ERROR as
140 * the level.
141 *
142 * @param category The category (or @c NULL).
143 * @param format The format string.
144 *
145 * @see gaim_debug()
146 */
147 void gaim_debug_fatal(const char *category, const char *format, ...);
148
84 /*@}*/ 149 /*@}*/
85 150
86 /**************************************************************************/ 151 /**************************************************************************/
87 /** @name UI Registration Functions */ 152 /** @name UI Registration Functions */
88 /**************************************************************************/ 153 /**************************************************************************/