tree data UPDATE restoring op data tree
In case there are sibling nodes of an operation,
restore them back correctly after the validation.
diff --git a/src/tree_data.c b/src/tree_data.c
index eee87c8..60a17b5 100644
--- a/src/tree_data.c
+++ b/src/tree_data.c
@@ -483,15 +483,7 @@
return match;
}
-/**
- * @brief Insert node after a sibling.
- *
- * Handles inserting into NP containers and key-less lists.
- *
- * @param[in] sibling Sibling to insert after.
- * @param[in] node Node to insert.
- */
-static void
+void
lyd_insert_after_node(struct lyd_node *sibling, struct lyd_node *node)
{
struct lyd_node_inner *par;
@@ -523,15 +515,7 @@
}
}
-/**
- * @brief Insert node before a sibling.
- *
- * Handles inserting into NP containers and key-less lists.
- *
- * @param[in] sibling Sibling to insert before.
- * @param[in] node Node to insert.
- */
-static void
+void
lyd_insert_before_node(struct lyd_node *sibling, struct lyd_node *node)
{
struct lyd_node_inner *par;