libyang REFACTOR prefix format always decides the callback (#1169)
So the callback is no longer needed as a parameter.
Also, union no longer uses its own prefix mappings
but instead uses the original format and copies any
required prefix data.
diff --git a/src/parser_lyb.c b/src/parser_lyb.c
index 3cd222e..80c4159 100644
--- a/src/parser_lyb.c
+++ b/src/parser_lyb.c
@@ -380,8 +380,8 @@
dynamic = 1;
/* create metadata */
- ret = lyd_parser_create_meta((struct lyd_ctx*)lybctx, NULL, meta, mod, meta_name, strlen(meta_name), meta_value, ly_strlen(meta_value),
- &dynamic, 0, lydjson_resolve_prefix, NULL, LYD_JSON, sparent);
+ ret = lyd_parser_create_meta((struct lyd_ctx *)lybctx, NULL, meta, mod, meta_name, strlen(meta_name), meta_value,
+ ly_strlen(meta_value), &dynamic, 0, LY_PREF_JSON, NULL, sparent);
/* free strings */
free(meta_name);
@@ -767,8 +767,8 @@
dynamic = 1;
/* create node */
- ret = lyd_parser_create_term((struct lyd_ctx*)lybctx, snode, value, ly_strlen(value), &dynamic, 0,
- lydjson_resolve_prefix, NULL, LYD_JSON, &node);
+ ret = lyd_parser_create_term((struct lyd_ctx *)lybctx, snode, value, ly_strlen(value), &dynamic, 0,
+ LY_PREF_JSON, NULL, &node);
if (dynamic) {
free(value);
dynamic = 0;