Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
6720:41120df7ed94 | 6721:acc4376ce062 |
---|---|
54 gaim_debug_vargs(level, category, format, args); | 54 gaim_debug_vargs(level, category, format, args); |
55 va_end(args); | 55 va_end(args); |
56 } | 56 } |
57 | 57 |
58 void | 58 void |
59 gaim_debug_misc(const char *category, const char *format, ...) | |
60 { | |
61 va_list args; | |
62 | |
63 g_return_if_fail(format != NULL); | |
64 | |
65 va_start(args, format); | |
66 gaim_debug_vargs(GAIM_DEBUG_MISC, category, format, args); | |
67 va_end(args); | |
68 } | |
69 | |
70 void | |
71 gaim_debug_info(const char *category, const char *format, ...) | |
72 { | |
73 va_list args; | |
74 | |
75 g_return_if_fail(format != NULL); | |
76 | |
77 va_start(args, format); | |
78 gaim_debug_vargs(GAIM_DEBUG_INFO, category, format, args); | |
79 va_end(args); | |
80 } | |
81 | |
82 void | |
83 gaim_debug_warning(const char *category, const char *format, ...) | |
84 { | |
85 va_list args; | |
86 | |
87 g_return_if_fail(format != NULL); | |
88 | |
89 va_start(args, format); | |
90 gaim_debug_vargs(GAIM_DEBUG_WARNING, category, format, args); | |
91 va_end(args); | |
92 } | |
93 | |
94 void | |
95 gaim_debug_error(const char *category, const char *format, ...) | |
96 { | |
97 va_list args; | |
98 | |
99 g_return_if_fail(format != NULL); | |
100 | |
101 va_start(args, format); | |
102 gaim_debug_vargs(GAIM_DEBUG_ERROR, category, format, args); | |
103 va_end(args); | |
104 } | |
105 | |
106 void | |
107 gaim_debug_fatal(const char *category, const char *format, ...) | |
108 { | |
109 va_list args; | |
110 | |
111 g_return_if_fail(format != NULL); | |
112 | |
113 va_start(args, format); | |
114 gaim_debug_vargs(GAIM_DEBUG_FATAL, category, format, args); | |
115 va_end(args); | |
116 } | |
117 | |
118 void | |
59 gaim_set_debug_ui_ops(GaimDebugUiOps *ops) | 119 gaim_set_debug_ui_ops(GaimDebugUiOps *ops) |
60 { | 120 { |
61 debug_ui_ops = ops; | 121 debug_ui_ops = ops; |
62 } | 122 } |
63 | 123 |