summaryrefslogtreecommitdiff
path: root/lib/northbound_db.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/northbound_db.h')
-rw-r--r--lib/northbound_db.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/northbound_db.h b/lib/northbound_db.h
index ad60966441..14df09caa3 100644
--- a/lib/northbound_db.h
+++ b/lib/northbound_db.h
@@ -22,6 +22,10 @@
#include "northbound.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Initialize the northbound database.
*
@@ -101,4 +105,8 @@ extern int nb_db_transactions_iterate(
const char *date, const char *comment),
void *arg);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FRR_NORTHBOUND_DB_H_ */