diff options
Diffstat (limited to 'lib/yang.h')
| -rw-r--r-- | lib/yang.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/yang.h b/lib/yang.h index 885218272a..15f0ec7ae6 100644 --- a/lib/yang.h +++ b/lib/yang.h @@ -514,6 +514,21 @@ extern void yang_data_free(struct yang_data *data); extern struct list *yang_data_list_new(void); /* + * Find the yang_data structure corresponding to an XPath in a list. + * + * list + * list of yang_data structures to operate on. + * + * xpath_fmt + * XPath to search for (format string). + * + * Returns: + * Pointer to yang_data if found, NULL otherwise. + */ +extern struct yang_data *yang_data_list_find(const struct list *list, + const char *xpath_fmt, ...); + +/* * Create and set up a libyang context (for use by the translator) */ extern struct ly_ctx *yang_ctx_new_setup(void); |
