summaryrefslogtreecommitdiffstats
path: root/lib/distribute.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/distribute.h')
-rw-r--r--lib/distribute.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/distribute.h b/lib/distribute.h
index 44c699b38..4016d3b13 100644
--- a/lib/distribute.h
+++ b/lib/distribute.h
@@ -25,6 +25,10 @@
#include "if.h"
#include "filter.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Disctirubte list types. */
enum distribute_type {
DISTRIBUTE_V4_IN,
@@ -81,4 +85,8 @@ extern enum filter_type distribute_apply_in(struct interface *,
extern enum filter_type distribute_apply_out(struct interface *,
struct prefix *);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _ZEBRA_DISTRIBUTE_H */