--- a/src/debug.c Sun Jun 26 01:14:51 2005 +0000 +++ b/src/debug.c Tue Jun 28 06:13:07 2005 +0000 @@ -40,6 +40,8 @@ */ static gboolean debug_enabled = FALSE; +/* XXX I want to make this static but gg uses this for internal debug level + * stuff and I don't really feel like unwrapping it right now. -Etan */ void gaim_debug_vargs(GaimDebugLevel level, const char *category, const char *format, va_list args) @@ -156,6 +158,32 @@ } void +gaim_debug_register_category(const char *category) +{ + GaimDebugUiOps *ops; + + g_return_if_fail(category != NULL); + + ops = gaim_debug_get_ui_ops(); + + if (ops != NULL && ops->register_category != NULL) + ops->register_category(category); +} + +void +gaim_debug_unregister_category(const char *category) +{ + GaimDebugUiOps *ops; + + g_return_if_fail(category != NULL); + + ops = gaim_debug_get_ui_ops(); + + if (ops != NULL && ops->unregister_category != NULL) + ops->unregister_category(category); +} + +void gaim_debug_set_enabled(gboolean enabled) { debug_enabled = enabled;