| 72 * @param level The debug level. |
72 * @param level The debug level. |
| 73 * @param category The category (or @c NULL). |
73 * @param category The category (or @c NULL). |
| 74 * @param format The format string. |
74 * @param format The format string. |
| 75 */ |
75 */ |
| 76 void purple_debug(PurpleDebugLevel level, const char *category, |
76 void purple_debug(PurpleDebugLevel level, const char *category, |
| 77 const char *format, ...); |
77 const char *format, ...) G_GNUC_PRINTF(3, 4); |
| 78 |
78 |
| 79 /** |
79 /** |
| 80 * Outputs misc. level debug information. |
80 * Outputs misc. level debug information. |
| 81 * |
81 * |
| 82 * This is a wrapper for purple_debug(), and uses PURPLE_DEBUG_MISC as |
82 * This is a wrapper for purple_debug(), and uses PURPLE_DEBUG_MISC as |
| 85 * @param category The category (or @c NULL). |
85 * @param category The category (or @c NULL). |
| 86 * @param format The format string. |
86 * @param format The format string. |
| 87 * |
87 * |
| 88 * @see purple_debug() |
88 * @see purple_debug() |
| 89 */ |
89 */ |
| 90 void purple_debug_misc(const char *category, const char *format, ...); |
90 void purple_debug_misc(const char *category, const char *format, ...) G_GNUC_PRINTF(2, 3); |
| 91 |
91 |
| 92 /** |
92 /** |
| 93 * Outputs info level debug information. |
93 * Outputs info level debug information. |
| 94 * |
94 * |
| 95 * This is a wrapper for purple_debug(), and uses PURPLE_DEBUG_INFO as |
95 * This is a wrapper for purple_debug(), and uses PURPLE_DEBUG_INFO as |
| 98 * @param category The category (or @c NULL). |
98 * @param category The category (or @c NULL). |
| 99 * @param format The format string. |
99 * @param format The format string. |
| 100 * |
100 * |
| 101 * @see purple_debug() |
101 * @see purple_debug() |
| 102 */ |
102 */ |
| 103 void purple_debug_info(const char *category, const char *format, ...); |
103 void purple_debug_info(const char *category, const char *format, ...) G_GNUC_PRINTF(2, 3); |
| 104 |
104 |
| 105 /** |
105 /** |
| 106 * Outputs warning level debug information. |
106 * Outputs warning level debug information. |
| 107 * |
107 * |
| 108 * This is a wrapper for purple_debug(), and uses PURPLE_DEBUG_WARNING as |
108 * This is a wrapper for purple_debug(), and uses PURPLE_DEBUG_WARNING as |
| 111 * @param category The category (or @c NULL). |
111 * @param category The category (or @c NULL). |
| 112 * @param format The format string. |
112 * @param format The format string. |
| 113 * |
113 * |
| 114 * @see purple_debug() |
114 * @see purple_debug() |
| 115 */ |
115 */ |
| 116 void purple_debug_warning(const char *category, const char *format, ...); |
116 void purple_debug_warning(const char *category, const char *format, ...) G_GNUC_PRINTF(2, 3); |
| 117 |
117 |
| 118 /** |
118 /** |
| 119 * Outputs error level debug information. |
119 * Outputs error level debug information. |
| 120 * |
120 * |
| 121 * This is a wrapper for purple_debug(), and uses PURPLE_DEBUG_ERROR as |
121 * This is a wrapper for purple_debug(), and uses PURPLE_DEBUG_ERROR as |
| 124 * @param category The category (or @c NULL). |
124 * @param category The category (or @c NULL). |
| 125 * @param format The format string. |
125 * @param format The format string. |
| 126 * |
126 * |
| 127 * @see purple_debug() |
127 * @see purple_debug() |
| 128 */ |
128 */ |
| 129 void purple_debug_error(const char *category, const char *format, ...); |
129 void purple_debug_error(const char *category, const char *format, ...) G_GNUC_PRINTF(2, 3); |
| 130 |
130 |
| 131 /** |
131 /** |
| 132 * Outputs fatal error level debug information. |
132 * Outputs fatal error level debug information. |
| 133 * |
133 * |
| 134 * This is a wrapper for purple_debug(), and uses PURPLE_DEBUG_ERROR as |
134 * This is a wrapper for purple_debug(), and uses PURPLE_DEBUG_ERROR as |
| 137 * @param category The category (or @c NULL). |
137 * @param category The category (or @c NULL). |
| 138 * @param format The format string. |
138 * @param format The format string. |
| 139 * |
139 * |
| 140 * @see purple_debug() |
140 * @see purple_debug() |
| 141 */ |
141 */ |
| 142 void purple_debug_fatal(const char *category, const char *format, ...); |
142 void purple_debug_fatal(const char *category, const char *format, ...) G_GNUC_PRINTF(2, 3); |
| 143 |
143 |
| 144 /** |
144 /** |
| 145 * Enable or disable printing debug output to the console. |
145 * Enable or disable printing debug output to the console. |
| 146 * |
146 * |
| 147 * @param enabled TRUE to enable debug output or FALSE to disable it. |
147 * @param enabled TRUE to enable debug output or FALSE to disable it. |