summaryrefslogtreecommitdiff
path: root/lib/northbound.h
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-01-06 09:45:29 +0000
committerChristian Hopps <chopps@labn.net>2024-01-07 15:17:30 +0000
commitcf67a7e26577b0dda276324b40a602ae084e504e (patch)
tree7019c29239c15d507736b2330ead23774d636481 /lib/northbound.h
parent00138ffb47acc58a49e93a9b291a4b9e0c92096e (diff)
lib: mgmtd: implement full XPath 1.0 predicate functionality
Allow user to specify full YANG compatible XPath 1.0 predicates. This allows for trimming results of generic queries using functions and other non-key predicates from XPath 1.0 Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/northbound.h')
-rw-r--r--lib/northbound.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/northbound.h b/lib/northbound.h
index 018d09fac7..37b7055c10 100644
--- a/lib/northbound.h
+++ b/lib/northbound.h
@@ -813,6 +813,14 @@ void nb_nodes_delete(void);
*/
extern struct nb_node *nb_node_find(const char *xpath);
+/**
+ * nb_nodes_find() - find the NB nodes corresponding to complex xpath.
+ * @xpath: XPath to search for (with or without predicates).
+ *
+ * Return: a dynamic array (darr) of `struct nb_node *`s.
+ */
+extern struct nb_node **nb_nodes_find(const char *xpath);
+
extern void nb_node_set_dependency_cbs(const char *dependency_xpath,
const char *dependant_xpath,
struct nb_dependency_callbacks *cbs);