diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-11-19 17:03:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 17:03:00 +0100 |
commit | cac886dd5392bd26dcbca5e4e3c5e72d1e321b75 (patch) | |
tree | 443b70972c34520acbf6ae77ed48749be1fde417 /lib/yang.c | |
parent | Merge pull request #7563 from donaldsharp/why_not_cut_n_paste (diff) | |
parent | pimd: fix indentation issues (diff) | |
download | frr-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.c | 6 |
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; |