/dports/net/libyang/libyang-1.0.240/src/ |
H A D | printer_lyb.c | 95 while ((iter1 = (struct lys_node *)lys_getnext(iter1, aug1, lys_node_module(aug1), 0))) { in lyb_check_augment_collision() 97 while ((iter2 = (struct lys_node *)lys_getnext(iter2, aug2, lys_node_module(aug2), 0))) { in lyb_check_augment_collision() 110 lys_node_module(iter1)->name, lys_node_module(iter2)->name); in lyb_check_augment_collision() 112 lys_node_module(iter1)->name, lys_node_module(iter2)->name); in lyb_check_augment_collision() 136 mod = lys_node_module(parent); in lyb_check_augments() 143 if (sibling->parent->nodetype == LYS_AUGMENT && lys_node_module(sibling->parent) != mod) { in lyb_check_augments() 146 if (lys_node_module(augs[i]) == lys_node_module(sibling)) { in lyb_check_augments() 200 mod = lys_node_module(sibling); in lyb_hash_siblings() 212 if (aug_mod && aug_mod != lys_node_module(sibling->parent)) { in lyb_hash_siblings() 215 aug_mod = lys_node_module(sibling); in lyb_hash_siblings() [all …]
|
H A D | printer_json.c | 164 schema = lys_node_module(node->schema)->name; in json_print_leaf() 272 schema = lys_node_module(node->schema)->name; in json_print_container() 315 schema = lys_node_module(node->schema)->name; in json_print_leaf_list() 439 schema = lys_node_module(node->schema)->name; in json_print_anydataxml()
|
H A D | resolve.c | 1766 if (prefix_mod != lys_node_module(sibling)) { in schema_nodeid_siblingcheck() 1855 cur_module = lys_node_module(start_parent); in resolve_schema_nodeid() 2094 module = lys_node_module(start); in resolve_descendant_schema_nodeid() 3882 if (local_mod != lys_node_module(first_node)) { in resolve_schema_leafref_valid_dep_flag() 3943 trg_mod = lys_node_module(parent); in resolve_schema_leafref_predicate() 3989 trg_mod = lys_node_module(parent); in resolve_schema_leafref_predicate() 4200 cur_module = lys_node_module(parent); in resolve_schema_leafref() 4337 if (lys_node_module(node)->implemented) { in resolve_schema_leafref() 4760 lys_node_module(aug->target)->implemented = 1; in resolve_augment() 4769 if (!aug->parent && (lys_node_module((struct lys_node *)aug) != lys_node_module(aug->target)) in resolve_augment() [all …]
|
H A D | common.c | 1064 if (col && strcmp(lys_node_module(node)->name, str)) { in ly_path_data2schema_subexp() 1067 if (!col && (lys_node_module(node) != lys_node_module(parent))) { in ly_path_data2schema_subexp() 1094 if ((lys_node_module(node2) != cur_mod) || !parent) { in ly_path_data2schema_subexp() 1096 … len = slash + strlen(lys_node_module(node2)->name) + 1 + strlen(node2->name); in ly_path_data2schema_subexp() 1099 …sprintf(*out + *out_used - 1, "%s%s:%s", slash ? "/" : "", lys_node_module(node2)->name, node2->na… in ly_path_data2schema_subexp() 1411 mod = lys_node_module(sibling); in lyb_hash() 1444 const struct lys_module *mod = lys_node_module(sibling); in lyb_has_schema_model()
|
H A D | parser_xml.c | 201 if (schema && !lys_node_module(schema)->implemented) { in xml_parse_data() 202 ctx->data_clb(ctx, lys_node_module(schema)->name, lys_node_module(schema)->ns, in xml_parse_data() 213 mod = lys_node_module(schema); in xml_parse_data()
|
H A D | log.c | 616 top_smodule = lys_node_module(sparent); in ly_vlog_build_path() 624 …if (!sparent || (lys_node_module((struct lys_node *)elem) != top_smodule) || schema_all_prefixes) { in ly_vlog_build_path() 625 prefix = lys_node_module((struct lys_node *)elem)->name; in ly_vlog_build_path() 650 prefix = lys_node_module((struct lys_node *)elem)->name; in ly_vlog_build_path()
|
H A D | tree_schema.c | 200 mod = lys_node_module(node); in lys_get_sibling() 208 node_mod_name = lys_node_module(node)->name; in lys_get_sibling() 236 mod = lys_node_module(parent); in lys_getnext_data() 432 main_module = lys_node_module(node); in lys_node_unlink() 709 … if (lys_node_module(iter) == lys_node_module(node) && ly_strequal(iter->name, node->name, 1)) { in lys_check_id() 4140 lys_node_module(const struct lys_node *node) in lys_node_module() function 4283 prev_mod = lys_node_module(lys_parent(node)); 4823 target_mod = lys_node_module(dev->orig_node); in remove_dev() 5212 …used += sprintf(buf + used, "/%s%s%s", (lys_node_module(node) == prev_mod ? "" : lys_node_module(n… in lys_data_path() 5214 prev_mod = lys_node_module(node); in lys_data_path() [all …]
|
H A D | tree_data.c | 1202 name, lys_node_module(siblings)->name, siblings->name); in lyd_new() 1732 … if (!value || (!mod_name && (lys_node_module(key) != lys_node_module((struct lys_node *)slist))) in lyd_new_path_list_predicate() 1733 …|| (mod_name && (strncmp(lys_node_module(key)->name, mod_name, mod_name_len) || lys_node_module(ke… in lyd_new_path_list_predicate() 1990 module = prev_mod = lys_node_module(sparent); in lyd_new_path() 2034 node_mod_name = lys_node_module(schild)->name; in lyd_new_path() 2038 } else if (lys_node_module(schild) != prev_mod) { in lyd_new_path() 2203 prev_mod = lys_node_module(schild); in lyd_new_path() 2406 trg_mod = lys_node_module(parent); in lys_get_schema_inctx() 4833 if (lys_node_module(np1->node->schema) != lys_node_module(np2->node->schema)) { in lyd_node_pos_cmp() 4834 mpos1 = lys_module_pos(lys_node_module(np1->node->schema)); in lyd_node_pos_cmp() [all …]
|
H A D | parser_json.c | 1045 && ((prefix && !strcmp(lys_node_module(schema)->name, prefix)) in json_parse_data() 1046 … || (!prefix && (lys_node_module(schema) == lys_node_module(schema_parent))))) { in json_parse_data() 1053 && ((prefix && !strcmp(lys_node_module(schema)->name, prefix)) in json_parse_data() 1054 || (!prefix && (lys_node_module(schema) == lyd_node_module(*parent))))) { in json_parse_data() 1061 module = lys_node_module(schema); in json_parse_data()
|
H A D | printer_tree.c | 95 if (module->type && (lys_main_module(module) != lys_node_module(cur))) { in tree_sibling_is_valid_child() 206 nodemod = lys_node_module(sub); in tree_get_max_name_len() 290 nodemod = lys_node_module(node); in tree_print_prefix() 961 || (!module->type && (lys_node_module(module->augment[i].target) == module)) in tree_print_model()
|
H A D | printer.c | 71 if (lys_node_module(node1->schema) == lys_node_module(node2->schema)) { in nscmp()
|
H A D | xpath.c | 3258 …if ((((struct lys_node_leaf *)snode)->type.base != LY_TYPE_IDENT) || lys_node_module(snode)->imple… in warn_equality_value() 5453 root = lys_getnext(NULL, NULL, lys_node_module(cur_node), LYS_GETNEXT_NOSTATECHECK); in moveto_snode_get_root() 5571 if (strcmp(node_name, "*") && (lys_node_module(node) != moveto_mod)) { in moveto_snode_check() 5919 if (moveto_mod && (lys_node_module(elem->schema) != moveto_mod)) { in moveto_node_alldesc() 5921 } else if (!moveto_mod && (lys_node_module(elem->schema) != local_mod)) { in moveto_node_alldesc() 6067 if (moveto_mod && (lys_node_module(elem) != moveto_mod)) { in moveto_snode_alldesc() 6069 } else if (!moveto_mod && (lys_node_module(elem) != local_mod)) { in moveto_snode_alldesc() 6737 …node = (struct lys_node *)lys_getnext(NULL, NULL, lys_node_module(node), LYS_GETNEXT_NOSTATECHECK); in moveto_snode_parent() 8985 …rc = eval_expr_select(exp, &exp_idx, 0, (struct lyd_node *)_ctx_snode, lys_node_module(cur_snode),… in lyxp_atomize() 9098 … lys_node_module(tmp_set.val.snodes[j].snode), tmp_set.val.snodes[j].snode->name, node)) { in lyxp_node_atomize() [all …]
|
H A D | printer_yang.c | 1137 … if (!strncmp(leaf->dflt, lys_node_module(node)->name, strchr(leaf->dflt, ':') - leaf->dflt)) { in yang_print_leaf() 1216 …if (!strncmp(llist->dflt[i], lys_node_module(node)->name, strchr(llist->dflt[i], ':') - llist->dfl… in yang_print_leaflist() 1417 mod = lys_node_module(node->child); in yang_print_uses() 1418 if (lys_node_module(node) != mod) { in yang_print_uses()
|
H A D | printer_yin.c | 1120 … if (!strncmp(leaf->dflt, lys_node_module(node)->name, strchr(leaf->dflt, ':') - leaf->dflt)) { in yin_print_leaf() 1204 …if (!strncmp(llist->dflt[i], lys_node_module(node)->name, strchr(llist->dflt[i], ':') - llist->dfl… in yin_print_leaflist() 1406 mod = lys_node_module(node->child); in yin_print_uses() 1407 if (lys_node_module(node) != mod) { in yin_print_uses()
|
H A D | tree_schema.h | 2422 struct lys_module *lys_node_module(const struct lys_node *node);
|
H A D | validation.c | 219 r = lyd_build_relative_data_path(lys_node_module((struct lys_node *)slist), first, in lyv_list_uniq_equal()
|
H A D | parser_lyb.c | 488 mod = lys_node_module(leaf->schema); in lyb_parse_val_2()
|
H A D | parser_yin.c | 209 if ((lys_node_module(parent)->version != 2) && ((value[0] == '(') || strchr(value, ' '))) { in fill_yin_iffeature() 3106 mod = lys_node_module(parent); in fill_yin_deviation()
|
H A D | parser_yang.c | 4712 mod = lys_node_module(parent); in yang_check_deviation()
|
H A D | libyang.h.in | 276 * - lys_node_module()
|
/dports/net/libyang/libyang-1.0.240/ |
H A D | libyang.dump | 1184 'lys_node_module' => 1,
|