diff src/debug.h @ 10307:2ac21bf20e04

[gaim-migrate @ 11497] And another one gone, and another one gone, another one bites the dust. Hopefully I'm committing everything this time. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 03 Dec 2004 02:46:34 +0000
parents fa6395637e2c
children 50224ac8184d
line wrap: on
line diff
--- a/src/debug.h	Fri Dec 03 00:57:21 2004 +0000
+++ b/src/debug.h	Fri Dec 03 02:46:34 2004 +0000
@@ -25,6 +25,7 @@
 #ifndef _GAIM_DEBUG_H_
 #define _GAIM_DEBUG_H_
 
+#include <glib.h>
 #include <stdarg.h>
 
 /**
@@ -148,6 +149,20 @@
  */
 void gaim_debug_fatal(const char *category, const char *format, ...);
 
+/**
+ * Enable or disable printing debug output to the console.
+ *
+ * @param enabled TRUE to enable debug output or FALSE to disable it.
+ */
+void gaim_debug_set_enabled(gboolean enabled);
+
+/**
+ * Check if console debug output is enabled.
+ *
+ * @return TRUE if debuggin is enabled, FALSE if it is not.
+ */
+gboolean gaim_debug_is_enabled();
+
 /*@}*/
 
 /**************************************************************************/
@@ -173,6 +188,18 @@
 
 /*@}*/
 
+/**************************************************************************/
+/** @name Debug Subsystem                                                 */
+/**************************************************************************/
+/*@{*/
+
+/**
+ * Initializes the debug subsystem.
+ */
+void gaim_debug_init(void);
+
+/*@}*/
+
 #ifdef __cplusplus
 }
 #endif