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/printer_yin.c b/src/printer_yin.c
index d1e56b4..a316bce 100644
--- a/src/printer_yin.c
+++ b/src/printer_yin.c
@@ -535,7 +535,7 @@
yprp_grouping(ctx, subgrp);
}
- LY_LIST_FOR(grp->data, data) {
+ LY_LIST_FOR(grp->child, data) {
ypr_close_parent(ctx, &flag);
yprp_node(ctx, data);
}
@@ -561,7 +561,7 @@
struct lysp_node *data;
struct lysp_node_grp *grp;
- if (!inout->data) {
+ if (!inout->child) {
/* input/output is empty */
return;
}
@@ -581,7 +581,7 @@
yprp_grouping(ctx, grp);
}
- LY_LIST_FOR(inout->data, data) {
+ LY_LIST_FOR(inout->child, data) {
yprp_node(ctx, data);
}
@@ -621,7 +621,7 @@
yprp_grouping(ctx, grp);
}
- LY_LIST_FOR(notif->data, data) {
+ LY_LIST_FOR(notif->child, data) {
ypr_close_parent(ctx, &flag);
yprp_node(ctx, data);
}