#include "prefix.h"
#include "table.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct agg_table {
struct route_table *route_table;
static inline void agg_unlock_node(struct agg_node *node)
{
- return route_unlock_node(agg_node_to_rnode(node));
+ route_unlock_node(agg_node_to_rnode(node));
}
static inline void agg_set_table_info(struct agg_table *atable, void *data)
static inline struct agg_table *agg_get_table(struct agg_node *node)
{
- return (struct agg_table *)node->table->info;
+ return (struct agg_table *)route_table_get_info(node->table);
+}
+
+#ifdef __cplusplus
}
#endif
+
+#endif