libyang REFACTOR rename lyd_value.canonical to lyd_value._canonical
Express the fact the member is not supposed to be used directly.
diff --git a/src/tree_data_helpers.c b/src/tree_data_helpers.c
index e4dc1df..1d6c0f0 100644
--- a/src/tree_data_helpers.c
+++ b/src/tree_data_helpers.c
@@ -267,7 +267,7 @@
return ((struct lyd_node_opaq *)node)->value;
} else if (node->schema->nodetype & LYD_NODE_TERM) {
const struct lyd_value *val = &((struct lyd_node_term *)node)->value;
- return val->canonical ? val->canonical :
+ return val->_canonical ? val->_canonical :
val->realtype->plugin->print(LYD_CTX(node), val, LY_VALUE_CANON, NULL, NULL, NULL);
}
return NULL;
@@ -280,7 +280,7 @@
return NULL;
}
- return meta->value.canonical ? meta->value.canonical :
+ return meta->value._canonical ? meta->value._canonical :
meta->value.realtype->plugin->print(meta->annotation->module->ctx, &meta->value, LY_VALUE_CANON, NULL, NULL, NULL);
}