diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-07-25 21:16:02 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-07-25 21:16:02 +0200 |
commit | e0700290781cfb95b968f0f5105ace79587a3ff7 (patch) | |
tree | 1bc97cb53ae885010643df9539fcb321360ff683 /lib | |
parent | Merge pull request #2711 from pacovn/isis_test_fixes (diff) | |
download | frr-e0700290781cfb95b968f0f5105ace79587a3ff7.tar.xz frr-e0700290781cfb95b968f0f5105ace79587a3ff7.zip |
lib: Add parameter names as a hint of what is expected.
Add some parameter names to functions in table.h to give a
clue as to what we expect people to pass in.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/table.h | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/lib/table.h b/lib/table.h index a9d788b35..8304abe59 100644 --- a/lib/table.h +++ b/lib/table.h @@ -178,35 +178,37 @@ struct route_table_iter_t_ { extern struct route_table *route_table_init(void); extern struct route_table * -route_table_init_with_delegate(route_table_delegate_t *); +route_table_init_with_delegate(route_table_delegate_t *delegate); extern route_table_delegate_t *route_table_get_default_delegate(void); -extern void route_table_finish(struct route_table *); -extern struct route_node *route_top(struct route_table *); -extern struct route_node *route_next(struct route_node *); -extern struct route_node *route_next_until(struct route_node *, - const struct route_node *); -extern struct route_node *route_node_get(struct route_table *const, - union prefixconstptr); -extern struct route_node *route_node_lookup(const struct route_table *, - union prefixconstptr); -extern struct route_node *route_node_lookup_maynull(const struct route_table *, - union prefixconstptr); -extern struct route_node *route_node_match(const struct route_table *, - union prefixconstptr); -extern struct route_node *route_node_match_ipv4(const struct route_table *, - const struct in_addr *); -extern struct route_node *route_node_match_ipv6(const struct route_table *, - const struct in6_addr *); - -extern unsigned long route_table_count(const struct route_table *); - -extern struct route_node *route_node_create(route_table_delegate_t *, - struct route_table *); -extern void route_node_delete(struct route_node *); -extern void route_node_destroy(route_table_delegate_t *, struct route_table *, - struct route_node *); +extern void route_table_finish(struct route_table *table); +extern struct route_node *route_top(struct route_table *table); +extern struct route_node *route_next(struct route_node *node); +extern struct route_node *route_next_until(struct route_node *node, + const struct route_node *limit); +extern struct route_node *route_node_get(struct route_table *const table, + union prefixconstptr pu); +extern struct route_node *route_node_lookup(const struct route_table *table, + union prefixconstptr pu); +extern struct route_node * +route_node_lookup_maynull(const struct route_table *table, + union prefixconstptr pu); +extern struct route_node *route_node_match(const struct route_table *table, + union prefixconstptr pu); +extern struct route_node *route_node_match_ipv4(const struct route_table *table, + const struct in_addr *addr); +extern struct route_node *route_node_match_ipv6(const struct route_table *table, + const struct in6_addr *addr); + +extern unsigned long route_table_count(const struct route_table *table); + +extern struct route_node *route_node_create(route_table_delegate_t *delegate, + struct route_table *table); +extern void route_node_delete(struct route_node *node); +extern void route_node_destroy(route_table_delegate_t *delegate, + struct route_table *table, + struct route_node *node); extern struct route_node *route_table_get_next(const struct route_table *table, union prefixconstptr pu); |