summaryrefslogtreecommitdiff
path: root/lib/yang.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yang.h')
-rw-r--r--lib/yang.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/yang.h b/lib/yang.h
index 4ed0a39ba4..9c221445cd 100644
--- a/lib/yang.h
+++ b/lib/yang.h
@@ -607,6 +607,19 @@ extern struct ly_ctx *yang_ctx_new_setup(bool embedded_modules,
*/
extern void yang_debugging_set(bool enable);
+/*
+ * Parse a YANG notification.
+ *
+ * Args:
+ * format: LYD_FORMAT of input data.
+ * data: input data.
+ * notif: pointer to the libyang data tree to store the parsed notification.
+ * If the notification is not on the top level of the yang model,
+ * the pointer to the notification node is still returned, but it's
+ * part of the full data tree with all its parents.
+ */
+extern LY_ERR yang_parse_notification(LYD_FORMAT format, const char *data,
+ struct lyd_node **notif);
/*
* "Print" the yang tree in `root` into dynamic sized array.