Lines Matching refs:category

236 log_check(log_context lc, int category, int level) {  in log_check()  argument
250 if (category < 0 || category > lc->num_categories) in log_check()
251 category = 0; /*%< use default */ in log_check()
252 lcl = lc->categories[category]; in log_check()
254 category = 0; in log_check()
266 log_vwrite(log_context lc, int category, int level, const char *format, in log_vwrite() argument
294 if (category < 0 || category > lc->num_categories) in log_vwrite()
295 category = 0; /*%< use default */ in log_vwrite()
296 original_category = category; in log_vwrite()
297 lcl = lc->categories[category]; in log_vwrite()
299 category = 0; in log_vwrite()
426 log_write(log_context lc, int category, int level, const char *format, ...) { in log_write() argument
430 log_vwrite(lc, category, level, format, args); in log_write()
484 log_add_channel(log_context lc, int category, log_channel chan) { in log_add_channel() argument
487 if (lc == NULL || category < 0 || category >= lc->num_categories) { in log_add_channel()
498 lcl->next = lc->categories[category]; in log_add_channel()
499 lc->categories[category] = lcl; in log_add_channel()
505 log_remove_channel(log_context lc, int category, log_channel chan) { in log_remove_channel() argument
509 if (lc == NULL || category < 0 || category >= lc->num_categories) { in log_remove_channel()
514 for (prev_lcl = NULL, lcl = lc->categories[category]; in log_remove_channel()
523 lc->categories[category] = next_lcl; in log_remove_channel()
564 log_category_is_active(log_context lc, int category) { in log_category_is_active() argument
569 if (category >= 0 && category < lc->num_categories && in log_category_is_active()
570 lc->categories[category] != NULL) in log_category_is_active()