src/debug.c

changeset 11033
dc68e074f10d
parent 10448
4415ffba12e9
child 11256
fe82a0c5e5ec
--- 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;

mercurial