Lines Matching refs:category

242 log_check(log_context lc, int category, int level) {  in log_check()  argument
256 if (category < 0 || category > lc->num_categories) in log_check()
257 category = 0; /*%< use default */ in log_check()
258 lcl = lc->categories[category]; in log_check()
260 category = 0; in log_check()
272 log_vwrite(log_context lc, int category, int level, const char *format, in log_vwrite() argument
300 if (category < 0 || category > lc->num_categories) in log_vwrite()
301 category = 0; /*%< use default */ in log_vwrite()
302 original_category = category; in log_vwrite()
303 lcl = lc->categories[category]; in log_vwrite()
305 category = 0; in log_vwrite()
432 log_write(log_context lc, int category, int level, const char *format, ...) { in log_write() argument
436 log_vwrite(lc, category, level, format, args); in log_write()
490 log_add_channel(log_context lc, int category, log_channel chan) { in log_add_channel() argument
493 if (lc == NULL || category < 0 || category >= lc->num_categories) { in log_add_channel()
504 lcl->next = lc->categories[category]; in log_add_channel()
505 lc->categories[category] = lcl; in log_add_channel()
511 log_remove_channel(log_context lc, int category, log_channel chan) { in log_remove_channel() argument
515 if (lc == NULL || category < 0 || category >= lc->num_categories) { in log_remove_channel()
520 for (prev_lcl = NULL, lcl = lc->categories[category]; in log_remove_channel()
529 lc->categories[category] = next_lcl; in log_remove_channel()
570 log_category_is_active(log_context lc, int category) { in log_category_is_active() argument
575 if (category >= 0 && category < lc->num_categories && in log_category_is_active()
576 lc->categories[category] != NULL) in log_category_is_active()