summaryrefslogtreecommitdiff
path: root/lib/table.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-30 19:11:39 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-23 20:04:39 -0400
commit6ca30e9ec6ed84d5ace735912bf69c45050adda6 (patch)
tree2ffadfc6d1acf3f2019e9e96c552312af7b3aca9 /lib/table.h
parent890ca17a08d4c8e89664c34594d1ec3eb171db04 (diff)
bgpd, lib, zebra: Wrapper get/set of table->info pointer
Wrapper the get/set of the table->info pointer so that people are not directly accessing this data. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/table.h')
-rw-r--r--lib/table.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/table.h b/lib/table.h
index 711ace111e..541d74d77b 100644
--- a/lib/table.h
+++ b/lib/table.h
@@ -179,6 +179,16 @@ route_table_init_with_delegate(route_table_delegate_t *delegate);
extern route_table_delegate_t *route_table_get_default_delegate(void);
+static inline void *route_table_get_info(struct route_table *table)
+{
+ return table->info;
+}
+
+static inline void route_table_set_info(struct route_table *table, void *d)
+{
+ table->info = d;
+}
+
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);