diff options
| author | Santosh P K <50885001+Spantik@users.noreply.github.com> | 2020-06-10 22:47:07 +0530 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-10 22:47:07 +0530 | 
| commit | 57dd2f009739664cbf857a82e7a6970c916b8e10 (patch) | |
| tree | 7187878d1394bbc452ecc1e2bffd5edafb9a920d /lib/yang.h | |
| parent | 5e0494b38a53e5a3501088efb4b48b2cbb7a080f (diff) | |
| parent | 1abe6c535e89f8b445c7d5808bc7972a6b60236d (diff) | |
Merge pull request #6414 from opensourcerouting/nb-error-handling
NB context + enhanced error handling
Diffstat (limited to 'lib/yang.h')
| -rw-r--r-- | lib/yang.h | 18 | 
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/yang.h b/lib/yang.h index 3be0fe5383..85ef0d758c 100644 --- a/lib/yang.h +++ b/lib/yang.h @@ -519,6 +519,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.   *  | 
