summaryrefslogtreecommitdiffstats
path: root/lib/yang.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-11-19 17:03:00 +0100
committerGitHub <noreply@github.com>2020-11-19 17:03:00 +0100
commitcac886dd5392bd26dcbca5e4e3c5e72d1e321b75 (patch)
tree443b70972c34520acbf6ae77ed48749be1fde417 /lib/yang.c
parentMerge pull request #7563 from donaldsharp/why_not_cut_n_paste (diff)
parentpimd: fix indentation issues (diff)
downloadfrr-cac886dd5392bd26dcbca5e4e3c5e72d1e321b75.tar.xz
frr-cac886dd5392bd26dcbca5e4e3c5e72d1e321b75.zip
Merge pull request #6145 from patrasar/pim_nb_code_upstream
pimd: northbound backend code
Diffstat (limited to 'lib/yang.c')
-rw-r--r--lib/yang.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/yang.c b/lib/yang.c
index c59cb642f..22fe938e4 100644
--- a/lib/yang.c
+++ b/lib/yang.c
@@ -772,8 +772,7 @@ const struct lyd_node *yang_dnode_get_parent(const struct lyd_node *dnode,
return NULL;
}
-/* API to check if the given node is last node in the list */
-static bool yang_is_last_list_dnode(const struct lyd_node *dnode)
+bool yang_is_last_list_dnode(const struct lyd_node *dnode)
{
return (((dnode->next == NULL)
|| (dnode->next
@@ -785,8 +784,7 @@ static bool yang_is_last_list_dnode(const struct lyd_node *dnode)
!= 0)));
}
-/* API to check if the given node is last node in the data tree level */
-static bool yang_is_last_level_dnode(const struct lyd_node *dnode)
+bool yang_is_last_level_dnode(const struct lyd_node *dnode)
{
const struct lyd_node *parent;
const struct lys_node_list *snode;