schema CHANGE unify naming of children nodes in schema nodes
Use `child` instead of data. The only exception is module where the data
stands for the complete tree.
diff --git a/src/schema_compile_node.c b/src/schema_compile_node.c
index 7ea1ac5..960abaa 100644
--- a/src/schema_compile_node.c
+++ b/src/schema_compile_node.c
@@ -2381,7 +2381,7 @@
ret, done);
ctx->options |= inout_p->nodetype == LYS_INPUT ? LYS_COMPILE_RPC_INPUT : LYS_COMPILE_RPC_OUTPUT;
- LY_LIST_FOR(inout_p->data, child_p) {
+ LY_LIST_FOR(inout_p->child, child_p) {
LY_CHECK_GOTO(ret = lys_compile_node(ctx, child_p, node, 0, NULL), done);
}
@@ -2473,7 +2473,7 @@
LY_CHECK_GOTO(ret, done);
}
- LY_LIST_FOR(notif_p->data, child_p) {
+ LY_LIST_FOR(notif_p->child, child_p) {
ret = lys_compile_node(ctx, child_p, (struct lysc_node *)notif, 0, NULL);
LY_CHECK_GOTO(ret, done);
}
@@ -3479,7 +3479,7 @@
ctx->pmod = grp_mod;
/* compile data nodes */
- LY_LIST_FOR(grp->data, pnode) {
+ LY_LIST_FOR(grp->child, pnode) {
/* LYS_STATUS_USES in uses_status is a special bits combination to be able to detect status flags from uses */
ret = lys_compile_node(ctx, pnode, parent, (uses_p->flags & LYS_STATUS_MASK) | LYS_STATUS_USES, &uses_child_set);
LY_CHECK_GOTO(ret, cleanup);