00001
00025 #ifndef _GAIM_DEBUG_H_
00026 #define _GAIM_DEBUG_H_
00027
00028 #include <stdarg.h>
00029
00033 typedef enum
00034 {
00035 GAIM_DEBUG_ALL = 0,
00036 GAIM_DEBUG_MISC,
00037 GAIM_DEBUG_INFO,
00038 GAIM_DEBUG_WARNING,
00039 GAIM_DEBUG_ERROR,
00040 GAIM_DEBUG_FATAL
00042 } GaimDebugLevel;
00043
00047 typedef struct
00048 {
00049 void (*print)(GaimDebugLevel level, const char *category,
00050 const char *format, va_list args);
00051
00052 } GaimDebugUiOps;
00053
00054 #ifdef __cplusplus
00055 extern "C" {
00056 #endif
00057
00058
00060
00073 void gaim_debug_vargs(GaimDebugLevel level, const char *category,
00074 const char *format, va_list args);
00075
00083 void gaim_debug(GaimDebugLevel level, const char *category,
00084 const char *format, ...);
00085
00097 void gaim_debug_misc(const char *category, const char *format, ...);
00098
00110 void gaim_debug_info(const char *category, const char *format, ...);
00111
00123 void gaim_debug_warning(const char *category, const char *format, ...);
00124
00136 void gaim_debug_error(const char *category, const char *format, ...);
00137
00149 void gaim_debug_fatal(const char *category, const char *format, ...);
00150
00153
00155
00164 void gaim_debug_set_ui_ops(GaimDebugUiOps *ops);
00165
00172 GaimDebugUiOps *gaim_debug_get_ui_ops(void);
00173
00176 #ifdef __cplusplus
00177 }
00178 #endif
00179
00180 #endif