Mercurial > pidgin.yaz
diff src/debug.c @ 6721:acc4376ce062
[gaim-migrate @ 7248]
Added some debug wrapper functions, like gaim_debug_info and such.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 03 Sep 2003 06:06:54 +0000 |
parents | 565339a6eb86 |
children | feb3d21a7794 |
line wrap: on
line diff
--- a/src/debug.c Wed Sep 03 05:21:04 2003 +0000 +++ b/src/debug.c Wed Sep 03 06:06:54 2003 +0000 @@ -56,6 +56,66 @@ } void +gaim_debug_misc(const char *category, const char *format, ...) +{ + va_list args; + + g_return_if_fail(format != NULL); + + va_start(args, format); + gaim_debug_vargs(GAIM_DEBUG_MISC, category, format, args); + va_end(args); +} + +void +gaim_debug_info(const char *category, const char *format, ...) +{ + va_list args; + + g_return_if_fail(format != NULL); + + va_start(args, format); + gaim_debug_vargs(GAIM_DEBUG_INFO, category, format, args); + va_end(args); +} + +void +gaim_debug_warning(const char *category, const char *format, ...) +{ + va_list args; + + g_return_if_fail(format != NULL); + + va_start(args, format); + gaim_debug_vargs(GAIM_DEBUG_WARNING, category, format, args); + va_end(args); +} + +void +gaim_debug_error(const char *category, const char *format, ...) +{ + va_list args; + + g_return_if_fail(format != NULL); + + va_start(args, format); + gaim_debug_vargs(GAIM_DEBUG_ERROR, category, format, args); + va_end(args); +} + +void +gaim_debug_fatal(const char *category, const char *format, ...) +{ + va_list args; + + g_return_if_fail(format != NULL); + + va_start(args, format); + gaim_debug_vargs(GAIM_DEBUG_FATAL, category, format, args); + va_end(args); +} + +void gaim_set_debug_ui_ops(GaimDebugUiOps *ops) { debug_ui_ops = ops;