src/debug.h

changeset 10307
f3ba80364053
parent 8046
c581b20a47d6
child 11033
dc68e074f10d
equal deleted inserted replaced
10306:c2ad3e682684 10307:f3ba80364053
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 */ 24 */
25 #ifndef _GAIM_DEBUG_H_ 25 #ifndef _GAIM_DEBUG_H_
26 #define _GAIM_DEBUG_H_ 26 #define _GAIM_DEBUG_H_
27 27
28 #include <glib.h>
28 #include <stdarg.h> 29 #include <stdarg.h>
29 30
30 /** 31 /**
31 * Debug levels. 32 * Debug levels.
32 */ 33 */
146 * 147 *
147 * @see gaim_debug() 148 * @see gaim_debug()
148 */ 149 */
149 void gaim_debug_fatal(const char *category, const char *format, ...); 150 void gaim_debug_fatal(const char *category, const char *format, ...);
150 151
152 /**
153 * Enable or disable printing debug output to the console.
154 *
155 * @param enabled TRUE to enable debug output or FALSE to disable it.
156 */
157 void gaim_debug_set_enabled(gboolean enabled);
158
159 /**
160 * Check if console debug output is enabled.
161 *
162 * @return TRUE if debuggin is enabled, FALSE if it is not.
163 */
164 gboolean gaim_debug_is_enabled();
165
151 /*@}*/ 166 /*@}*/
152 167
153 /**************************************************************************/ 168 /**************************************************************************/
154 /** @name UI Registration Functions */ 169 /** @name UI Registration Functions */
155 /**************************************************************************/ 170 /**************************************************************************/
168 * information. 183 * information.
169 * 184 *
170 * @return The UI operations structure in use. 185 * @return The UI operations structure in use.
171 */ 186 */
172 GaimDebugUiOps *gaim_debug_get_ui_ops(void); 187 GaimDebugUiOps *gaim_debug_get_ui_ops(void);
188
189 /*@}*/
190
191 /**************************************************************************/
192 /** @name Debug Subsystem */
193 /**************************************************************************/
194 /*@{*/
195
196 /**
197 * Initializes the debug subsystem.
198 */
199 void gaim_debug_init(void);
173 200
174 /*@}*/ 201 /*@}*/
175 202
176 #ifdef __cplusplus 203 #ifdef __cplusplus
177 } 204 }

mercurial