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_yang.c b/src/printer_yang.c
index 2cd9604..57d9f12 100644
--- a/src/printer_yang.c
+++ b/src/printer_yang.c
@@ -1022,7 +1022,7 @@
yprp_grouping(ctx, subgrp);
}
- LY_LIST_FOR(grp->data, data) {
+ LY_LIST_FOR(grp->child, data) {
ypr_open(ctx->out, &flag);
yprp_node(ctx, data);
}
@@ -1048,7 +1048,7 @@
struct lysp_node *data;
struct lysp_node_grp *grp;
- if (!inout->data) {
+ if (!inout->child) {
/* no children */
return;
}
@@ -1068,7 +1068,7 @@
yprp_grouping(ctx, grp);
}
- LY_LIST_FOR(inout->data, data) {
+ LY_LIST_FOR(inout->child, data) {
yprp_node(ctx, data);
}
@@ -1082,7 +1082,7 @@
LY_ARRAY_COUNT_TYPE u;
struct lysc_node *data;
- if (!inout->data) {
+ if (!inout->child) {
/* input/output is empty */
return;
}
@@ -1097,7 +1097,7 @@
}
if (!(ctx->options & LYS_PRINT_NO_SUBSTMT)) {
- LY_LIST_FOR(inout->data, data) {
+ LY_LIST_FOR(inout->child, data) {
yprc_node(ctx, data);
}
}
@@ -1137,7 +1137,7 @@
yprp_grouping(ctx, grp);
}
- LY_LIST_FOR(notif->data, data) {
+ LY_LIST_FOR(notif->child, data) {
ypr_open(ctx->out, &flag);
yprp_node(ctx, data);
}
@@ -1166,7 +1166,7 @@
ypr_reference(ctx, notif->ref, notif->exts, &flag);
if (!(ctx->options & LYS_PRINT_NO_SUBSTMT)) {
- LY_LIST_FOR(notif->data, data) {
+ LY_LIST_FOR(notif->child, data) {
ypr_open(ctx->out, &flag);
yprc_node(ctx, data);
}