INFO printer FEATURE generic extension content printer
callback for the extension plugins to print the compiled content of the
extension instance.
diff --git a/src/plugins_exts_yangdata.c b/src/plugins_exts_yangdata.c
index 148360b..4978f35 100644
--- a/src/plugins_exts_yangdata.c
+++ b/src/plugins_exts_yangdata.c
@@ -153,11 +153,24 @@
}
/**
+ * @brief INFO printer
+ *
+ * Implementation of ::lyext_clb_schema_printer set as ::lyext_plugin::sprinter
+ */
+LY_ERR
+yangdata_schema_printer(struct lys_ypr_ctx *ctx, struct lysc_ext_instance *ext, ly_bool *flag)
+{
+ lysc_print_extension_instance(ctx, ext, flag);
+ return LY_SUCCESS;
+}
+
+/**
* @brief Plugin for the yang-data extension
*/
struct lyext_plugin yangdata_plugin = {
.id = "libyang 2 - yang-data, version 1",
.compile = &yangdata_compile,
.validate = NULL,
+ .sprinter = &yangdata_schema_printer,
.free = yangdata_free
};