schema mount NEW initial schema mount code
diff --git a/src/plugins_exts.c b/src/plugins_exts.c
index 90fc70a..6558f3a 100644
--- a/src/plugins_exts.c
+++ b/src/plugins_exts.c
@@ -18,11 +18,6 @@
#include <stdint.h>
-extern struct lyplg_ext metadata_plugin; /* plugins_exts_metadata.c */
-extern struct lyplg_ext nacm_plugin; /* plugins_exts_nacm.c */
-extern struct lyplg_ext yangdata_plugin; /* plugins_exts_yangdata.c */
-
-/* internal libyang headers - do not make them accessible to the extension plugins in plugins_exts_*.c */
#include "common.h"
#include "printer_internal.h"
#include "schema_compile.h"
@@ -62,3 +57,15 @@
{
return &((struct lyspr_ctx *)ctx)->level;
}
+
+API const struct lys_module *
+lysc_ctx_get_cur_mod(const struct lysc_ctx *ctx)
+{
+ return ctx->cur_mod;
+}
+
+API struct lysp_module *
+lysc_ctx_get_pmod(const struct lysc_ctx *ctx)
+{
+ return ctx->pmod;
+}