plugins types REFACTOR split store callback into store and resolve cb (#1220)
Refs #1161
Co-authored-by: Radek Krejci <rkrejci@cesnet.cz>
diff --git a/tools/re/main.c b/tools/re/main.c
index 8a313f0..f23d0ac 100644
--- a/tools/re/main.c
+++ b/tools/re/main.c
@@ -274,7 +274,8 @@
}
type = ((struct lysc_node_leaf *)mod->compiled->data)->type;
- match = type->plugin->store(ctx, type, str, strlen(str), 0, LY_PREF_JSON, NULL, NULL, NULL, &storage, &err);
+ match = type->plugin->store(ctx, type, str, strlen(str), 0, LY_PREF_JSON, NULL, LYD_HINT_SCHEMA,
+ mod->compiled->data, &storage, &err);
if ((match == LY_SUCCESS) || (match == LY_EINCOMPLETE)) {
storage.realtype->plugin->free(ctx, &storage);
}