@@ -6841,7 +6841,7 @@ resolve_unres_schema_item(struct lys_module *mod, void *item, enum UNRES_ITEM ty
68416841 return -1 ;
68426842 }
68436843 }
6844- } else if (rc == EXIT_FAILURE && !(stype -> flags & LYTYPE_GRP )) {
6844+ } else if (rc == EXIT_FAILURE && !(stype -> value_flags & LY_VALUE_UNRESGRP )) {
68456845 /* forward reference - in case the type is in grouping, we have to make the grouping unusable
68466846 * by uses statement until the type is resolved. We do that the same way as uses statements inside
68476847 * grouping. The grouping cannot be used unless the unres counter is 0.
@@ -6853,7 +6853,7 @@ resolve_unres_schema_item(struct lys_module *mod, void *item, enum UNRES_ITEM ty
68536853 LOGERR (ctx , LY_EINT , "Too many unresolved items (type) inside a grouping." );
68546854 return -1 ;
68556855 }
6856- stype -> flags |= LYTYPE_GRP ;
6856+ stype -> value_flags |= LY_VALUE_UNRESGRP ;
68576857 }
68586858 }
68596859 break ;
@@ -7864,7 +7864,7 @@ resolve_union(struct lyd_node_leaf_list *leaf, struct lys_type *type, int store,
78647864
78657865 assert (type -> base == LY_TYPE_UNION );
78667866
7867- if ((leaf -> value_type == LY_TYPE_UNION ) || ((leaf -> value_type == LY_TYPE_INST ) && (leaf -> value_flags & LYTYPE_UNRES ))) {
7867+ if ((leaf -> value_type == LY_TYPE_UNION ) || ((leaf -> value_type == LY_TYPE_INST ) && (leaf -> value_flags & LY_VALUE_UNRES ))) {
78687868 /* either NULL or instid previously converted to JSON */
78697869 json_val = lydict_insert (ctx , leaf -> value .string , 0 );
78707870 }
@@ -7939,7 +7939,7 @@ resolve_union(struct lyd_node_leaf_list *leaf, struct lys_type *type, int store,
79397939 leaf -> value .instance = NULL ;
79407940 }
79417941 leaf -> value_type = LY_TYPE_INST ;
7942- leaf -> value_flags |= LYTYPE_UNRES ;
7942+ leaf -> value_flags |= LY_VALUE_UNRES ;
79437943 }
79447944 }
79457945
@@ -8030,10 +8030,10 @@ resolve_unres_data_item(struct lyd_node *node, enum UNRES_ITEM type, int ignore_
80308030 }
80318031 leaf -> value .leafref = ret ;
80328032 leaf -> value_type = LY_TYPE_LEAFREF ;
8033- leaf -> value_flags &= ~LYTYPE_UNRES ;
8033+ leaf -> value_flags &= ~LY_VALUE_UNRES ;
80348034 } else {
80358035 /* valid unresolved */
8036- if (!(leaf -> value_flags & LYTYPE_UNRES )) {
8036+ if (!(leaf -> value_flags & LY_VALUE_UNRES )) {
80378037 if (!lyp_parse_value (& sleaf -> type , & leaf -> value_str , NULL , leaf , NULL , NULL , 1 , 0 , 0 )) {
80388038 return -1 ;
80398039 }
@@ -8063,12 +8063,12 @@ resolve_unres_data_item(struct lyd_node *node, enum UNRES_ITEM type, int ignore_
80638063 /* valid resolved */
80648064 leaf -> value .instance = ret ;
80658065 leaf -> value_type = LY_TYPE_INST ;
8066- leaf -> value_flags &= ~LYTYPE_UNRES ;
8066+ leaf -> value_flags &= ~LY_VALUE_UNRES ;
80678067 } else {
80688068 /* valid unresolved */
80698069 leaf -> value .instance = NULL ;
80708070 leaf -> value_type = LY_TYPE_INST ;
8071- leaf -> value_flags |= LYTYPE_UNRES ;
8071+ leaf -> value_flags |= LY_VALUE_UNRES ;
80728072 }
80738073 } else {
80748074 return rc ;
0 commit comments