summaryrefslogtreecommitdiff
path: root/lib/yang.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yang.h')
-rw-r--r--lib/yang.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/yang.h b/lib/yang.h
index afd3d5e0fc..3877a421c5 100644
--- a/lib/yang.h
+++ b/lib/yang.h
@@ -884,6 +884,10 @@ bool yang_is_last_level_dnode(const struct lyd_node *dnode);
extern int yang_get_key_preds(char *s, const struct lysc_node *snode,
const struct yang_list_keys *keys, ssize_t space);
+/* Get the length of the predicate string based on the keys */
+extern int yang_get_key_pred_strlen(const struct lysc_node *snode,
+ const struct yang_list_keys *keys);
+
/* Get YANG keys from an existing dnode */
extern int yang_get_node_keys(struct lyd_node *node, struct yang_list_keys *keys);