Lines Matching refs:category
240 log_check(log_context lc, int category, int level) {
254 if (category < 0 || category > lc->num_categories)
255 category = 0; /*%< use default */
256 lcl = lc->categories[category];
258 category = 0;
270 log_vwrite(log_context lc, int category, int level, const char *format,
298 if (category < 0 || category > lc->num_categories)
299 category = 0; /*%< use default */
300 original_category = category;
301 lcl = lc->categories[category];
303 category = 0;
330 * Make a string representation of the current category and level
430 log_write(log_context lc, int category, int level, const char *format, ...) {
434 log_vwrite(lc, category, level, format, args);
488 log_add_channel(log_context lc, int category, log_channel chan) {
491 if (lc == NULL || category < 0 || category >= lc->num_categories) {
502 lcl->next = lc->categories[category];
503 lc->categories[category] = lcl;
509 log_remove_channel(log_context lc, int category, log_channel chan) {
513 if (lc == NULL || category < 0 || category >= lc->num_categories) {
518 for (prev_lcl = NULL, lcl = lc->categories[category];
527 lc->categories[category] = next_lcl;
568 log_category_is_active(log_context lc, int category) {
573 if (category >= 0 && category < lc->num_categories &&
574 lc->categories[category] != NULL)