Mercurial > pidgin
diff src/debug.h @ 11033:50224ac8184d
[gaim-migrate @ 12919]
Ok, this is debug window filtering. Sadrul was going to do this with a text entry, but I like this better, feel free to disagree with me. It's not the prettiest in a couple places, most notable gtkmain.c where a bunch of categories that don't currently have a home get registered. I added some plugin_(un)load functions to some plugins to place the (un)register functions. Though I didn't do that for the prpls. Comments and cleanups welcome. (Oh, I've been seeing some crashes on quit, but I haven't been able to get it to happen reliably so I'm not sure if it's my code or some transient HEAD oscar/other crash.)
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Tue, 28 Jun 2005 06:13:07 +0000 |
parents | 2ac21bf20e04 |
children | bb0d7b719af2 |
line wrap: on
line diff
--- a/src/debug.h Sun Jun 26 01:14:51 2005 +0000 +++ b/src/debug.h Tue Jun 28 06:13:07 2005 +0000 @@ -49,7 +49,8 @@ { void (*print)(GaimDebugLevel level, const char *category, const char *format, va_list args); - + void (*register_category)(const char *category); + void (*unregister_category)(const char *category); } GaimDebugUiOps; #ifdef __cplusplus @@ -150,6 +151,20 @@ void gaim_debug_fatal(const char *category, const char *format, ...); /** + * Registers a debug category so that it can be filtered on. + * + * @param category The category to register. + */ +void gaim_debug_register_category(const char *category); + +/** + * Remove a registered category. + * + * @param category The category to unregister. + */ +void gaim_debug_unregister_category(const char *category); + +/** * Enable or disable printing debug output to the console. * * @param enabled TRUE to enable debug output or FALSE to disable it.