summaryrefslogtreecommitdiff
path: root/lib/nexthop_group.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-06-24 14:04:13 -0400
committerStephen Worley <sworley@cumulusnetworks.com>2019-06-25 22:58:48 -0400
commit50d8965075cf59744dde685ae01400d9b7ee08a2 (patch)
tree576f96ef1806522cfc2e8d7af5f2b61605daecc1 /lib/nexthop_group.h
parent504d0a409627e21167233e538dbc49af59fbdd99 (diff)
lib: Private api for nexthop_group manipulation
Add a file that exposes functions which modify nexthop groups. Nexthop groups are techincally immutable but there are a few special cases where we need direct access to add/remove nexthops after the group has been made. This file provides a way to expose those functions in a way that makes it clear this is a private/hidden api. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'lib/nexthop_group.h')
-rw-r--r--lib/nexthop_group.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/nexthop_group.h b/lib/nexthop_group.h
index 104e2051f5..4f4d40eb33 100644
--- a/lib/nexthop_group.h
+++ b/lib/nexthop_group.h
@@ -42,12 +42,8 @@ struct nexthop_group {
struct nexthop_group *nexthop_group_new(void);
void nexthop_group_delete(struct nexthop_group **nhg);
-void nexthop_add(struct nexthop **target, struct nexthop *nexthop);
-void nexthop_group_add_sorted(struct nexthop_group *nhg,
- struct nexthop *nexthop);
void nexthop_group_copy(struct nexthop_group *to,
struct nexthop_group *from);
-void nexthop_del(struct nexthop_group *nhg, struct nexthop *nexthop);
void copy_nexthops(struct nexthop **tnh, const struct nexthop *nh,
struct nexthop *rparent);