data tree FEATURE function for changing metadata value
diff --git a/src/tree_data_internal.h b/src/tree_data_internal.h
index 10a0b53..97b7790 100644
--- a/src/tree_data_internal.h
+++ b/src/tree_data_internal.h
@@ -285,8 +285,8 @@
  * @return LY_EINCOMPLETE in case the @p trees is not provided and it was needed to finish the validation.
  * @return LY_ERR value if an error occurred.
  */
-LY_ERR lyd_value_parse_meta(struct ly_ctx *ctx, struct lyd_meta *meta, const char *value, size_t value_len, int *dynamic,
-                            int second, ly_clb_resolve_prefix get_prefix, void *parser, LYD_FORMAT format,
+LY_ERR lyd_value_parse_meta(const struct ly_ctx *ctx, struct lyd_meta *meta, const char *value, size_t value_len,
+                            int *dynamic, int second, ly_clb_resolve_prefix get_prefix, void *parser, LYD_FORMAT format,
                             const struct lysc_node *ctx_snode, const struct lyd_node *tree);
 
 /**