plugins ext FEATURE initial schema-mount support
Only for XML data for now. Includes lots of other
changes needed to support this extension.
diff --git a/src/tree_data_helpers.c b/src/tree_data_helpers.c
index 84a6a7a..f1b453d 100644
--- a/src/tree_data_helpers.c
+++ b/src/tree_data_helpers.c
@@ -401,8 +401,7 @@
}
void
-lyd_parse_set_data_flags(struct lyd_node *node, struct ly_set *node_when, struct ly_set *node_exts, struct lyd_meta **meta,
- uint32_t parse_opts)
+lyd_parse_set_data_flags(struct lyd_node *node, struct ly_set *node_when, struct lyd_meta **meta, uint32_t parse_opts)
{
struct lyd_meta *meta2, *prev_meta = NULL;
@@ -412,7 +411,6 @@
LY_CHECK_RET(ly_set_add(node_when, node, 1, NULL), );
}
}
- LY_CHECK_RET(lysc_node_ext_tovalidate(node_exts, node), );
LY_LIST_FOR(*meta, meta2) {
if (!strcmp(meta2->name, "default") && !strcmp(meta2->annotation->module->name, "ietf-netconf-with-defaults") &&
@@ -634,6 +632,7 @@
switch (format) {
case LY_VALUE_XML:
+ case LY_VALUE_STR_NS:
ns_list = prefix_data;
for (i = 0; i < ns_list->count; ++i) {
free(((struct lyxml_ns *)ns_list->objs[i])->prefix);
@@ -689,6 +688,7 @@
}
break;
case LY_VALUE_XML:
+ case LY_VALUE_STR_NS:
/* copy all the namespaces */
LY_CHECK_GOTO(ret = ly_set_new(&ns_list), cleanup);
*prefix_data_p = ns_list;
@@ -775,15 +775,16 @@
}
break;
case LY_VALUE_XML:
+ case LY_VALUE_STR_NS:
/* copy all referenced namespaces as prefix - namespace pairs */
if (!*prefix_data_p) {
/* new prefix data */
LY_CHECK_GOTO(ret = ly_set_new(&ns_list), cleanup);
- *format_p = LY_VALUE_XML;
+ *format_p = format;
*prefix_data_p = ns_list;
} else {
/* reuse prefix data */
- assert(*format_p == LY_VALUE_XML);
+ assert(*format_p == format);
ns_list = *prefix_data_p;
}