summaryrefslogtreecommitdiff
path: root/lib/yang.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yang.h')
-rw-r--r--lib/yang.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/yang.h b/lib/yang.h
index 126521707b..2f3017e8ad 100644
--- a/lib/yang.h
+++ b/lib/yang.h
@@ -497,6 +497,24 @@ extern struct ly_ctx *yang_ctx_new_setup(bool embedded_modules);
extern void yang_debugging_set(bool enable);
/*
+ * Print libyang error messages into the provided buffer.
+ *
+ * ly_ctx
+ * libyang context to operate on.
+ *
+ * buf
+ * Buffer to store the libyang error messages.
+ *
+ * buf_len
+ * Size of buf.
+ *
+ * Returns:
+ * The provided buffer.
+ */
+extern const char *yang_print_errors(struct ly_ctx *ly_ctx, char *buf,
+ size_t buf_len);
+
+/*
* Initialize the YANG subsystem. Should be called only once during the
* daemon initialization process.
*