diff options
Diffstat (limited to 'lib/agg_table.h')
| -rw-r--r-- | lib/agg_table.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/agg_table.h b/lib/agg_table.h index a703969fdb..40ffe8c755 100644 --- a/lib/agg_table.h +++ b/lib/agg_table.h @@ -23,6 +23,10 @@ #include "prefix.h" #include "table.h" +#ifdef __cplusplus +extern "C" { +#endif + struct agg_table { struct route_table *route_table; @@ -58,7 +62,7 @@ static inline struct agg_node *agg_lock_node(struct agg_node *node) 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) @@ -150,4 +154,9 @@ static inline struct agg_table *agg_get_table(struct agg_node *node) { return (struct agg_table *)route_table_get_info(node->table); } + +#ifdef __cplusplus +} +#endif + #endif |
