context REFACTOR rename data_path to path
diff --git a/src/context.c b/src/context.c
index 33d9c48..771a310 100644
--- a/src/context.c
+++ b/src/context.c
@@ -544,7 +544,7 @@
}
API const struct lysc_node *
-ly_ctx_get_node(const struct ly_ctx *ctx, const struct lysc_node *ctx_node, const char *data_path, ly_bool output)
+ly_ctx_get_node(const struct ly_ctx *ctx, const struct lysc_node *ctx_node, const char *path, ly_bool output)
{
const struct lysc_node *snode = NULL;
struct lyxp_expr *exp = NULL;
@@ -559,7 +559,7 @@
}
/* parse */
- ret = lyxp_expr_parse(ctx, data_path, strlen(data_path), 0, &exp);
+ ret = lyxp_expr_parse(ctx, path, strlen(path), 0, &exp);
LY_CHECK_GOTO(ret, cleanup);
/* compile */
diff --git a/src/context.h b/src/context.h
index 585c9da..65e5a68 100644
--- a/src/context.h
+++ b/src/context.h
@@ -413,12 +413,12 @@
*
* @param[in] ctx libyang context, set for absolute paths.
* @param[in] ctx_node Starting context node for a relative data path, set for relative paths.
- * @param[in] data_path JSON data path of the node to get.
+ * @param[in] path JSON path of the node to get.
* @param[in] output Search operation output instead of input.
* @return Found schema node or NULL.
*/
-const struct lysc_node *ly_ctx_get_node(const struct ly_ctx *ctx, const struct lysc_node *ctx_node,
- const char *data_path, ly_bool output);
+const struct lysc_node *ly_ctx_get_node(const struct ly_ctx *ctx, const struct lysc_node *ctx_node, const char *path,
+ ly_bool output);
/**
* @brief Reset cached latest revision information of the schemas in the context.