Mercurial > pidgin
comparison src/debug.h @ 11256:bb0d7b719af2
[gaim-migrate @ 13430]
I give you regex filtering in the debug window.
We keep a buffer of all the text, so when unpausing all the messages that were output when paused will be displayed, as well as when you change the filter.
This _should_ be alright on systems that don't have regex.h but I haven't gotten anyone to test it recently, if it's busted, just #ifdef HAVE_REGEX_H it.
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Sat, 13 Aug 2005 22:09:34 +0000 |
parents | 50224ac8184d |
children | 921f64947cad |
comparison
equal
deleted
inserted
replaced
11255:1b1d63602d77 | 11256:bb0d7b719af2 |
---|---|
47 */ | 47 */ |
48 typedef struct | 48 typedef struct |
49 { | 49 { |
50 void (*print)(GaimDebugLevel level, const char *category, | 50 void (*print)(GaimDebugLevel level, const char *category, |
51 const char *format, va_list args); | 51 const char *format, va_list args); |
52 void (*register_category)(const char *category); | |
53 void (*unregister_category)(const char *category); | |
54 } GaimDebugUiOps; | 52 } GaimDebugUiOps; |
55 | 53 |
56 #ifdef __cplusplus | 54 #ifdef __cplusplus |
57 extern "C" { | 55 extern "C" { |
58 #endif | 56 #endif |
149 * @see gaim_debug() | 147 * @see gaim_debug() |
150 */ | 148 */ |
151 void gaim_debug_fatal(const char *category, const char *format, ...); | 149 void gaim_debug_fatal(const char *category, const char *format, ...); |
152 | 150 |
153 /** | 151 /** |
154 * Registers a debug category so that it can be filtered on. | |
155 * | |
156 * @param category The category to register. | |
157 */ | |
158 void gaim_debug_register_category(const char *category); | |
159 | |
160 /** | |
161 * Remove a registered category. | |
162 * | |
163 * @param category The category to unregister. | |
164 */ | |
165 void gaim_debug_unregister_category(const char *category); | |
166 | |
167 /** | |
168 * Enable or disable printing debug output to the console. | 152 * Enable or disable printing debug output to the console. |
169 * | 153 * |
170 * @param enabled TRUE to enable debug output or FALSE to disable it. | 154 * @param enabled TRUE to enable debug output or FALSE to disable it. |
171 */ | 155 */ |
172 void gaim_debug_set_enabled(gboolean enabled); | 156 void gaim_debug_set_enabled(gboolean enabled); |