Lines Matching defs:level
1481 cil_level_init(&usrlvl->level);
1483 rc = cil_fill_level(parse_current->next->next->cl_head, usrlvl->level);
1506 if (usrlvl->level_str == NULL && usrlvl->level != NULL) {
1507 cil_destroy_level(usrlvl->level);
3826 struct cil_level *level = NULL;
3838 cil_level_init(&level);
3842 rc = cil_gen_node(db, ast_node, (struct cil_symtab_datum*)level, (hashtab_key_t)key, CIL_SYM_LEVELS, CIL_LEVEL);
3847 rc = cil_fill_level(parse_current->next->next->cl_head, level);
3855 cil_tree_log(parse_current, CIL_ERR, "Bad level declaration");
3856 cil_destroy_level(level);
3861 void cil_destroy_level(struct cil_level *level)
3863 if (level == NULL) {
3867 cil_symtab_datum_destroy(&level->datum);
3869 cil_destroy_cats(level->cats);
3871 free(level);
3874 /* low should be pointing to either the name of the low level or to an open paren for an anonymous low level */
5724 int cil_fill_level(struct cil_tree_node *curr, struct cil_level *level)
5743 level->sens_str = curr->data;
5745 rc = cil_fill_cats(curr->next, &level->cats);
5754 cil_log(CIL_ERR, "Bad level\n");