libyang REFACTOR unify lyd_node macros
LYD_CANONICAL -> LYD_CANON_VALUE
LYD_NODE_CTX -> LYD_CTX
diff --git a/src/tree_data.h b/src/tree_data.h
index 7c94d99..5998751 100644
--- a/src/tree_data.h
+++ b/src/tree_data.h
@@ -136,7 +136,7 @@
/**
* @brief Macro to get context from a data tree node.
*/
-#define LYD_NODE_CTX(node) ((node)->schema ? (node)->schema->module->ctx : ((struct lyd_node_opaq *)(node))->ctx)
+#define LYD_CTX(node) ((node)->schema ? (node)->schema->module->ctx : ((struct lyd_node_opaq *)(node))->ctx)
/**
* @brief Data input/output formats supported by libyang [parser](@ref howtodataparsers) and
@@ -235,7 +235,7 @@
* @param[in] node Term node with the value.
* @return Canonical value.
*/
-#define LYD_CANONICAL(node) ((struct lyd_node_term *)(node))->value.canonical
+#define LYD_CANON_VALUE(node) ((struct lyd_node_term *)(node))->value.canonical
/**
* @brief Metadata structure.