]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/db.h
Merge pull request #5104 from opensourcerouting/route-map-nbv2
[mirror_frr.git] / lib / db.h
index 8c936ec4baa87dcdcee87a01774c16fc9e1afdf6..884c7377f2ee569a0ccab0503a8ef45e4335957b 100644 (file)
--- a/lib/db.h
+++ b/lib/db.h
 
 #include <sqlite3.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 extern int db_init(const char *path_fmt, ...);
 extern int db_close(void);
 extern int db_bindf(struct sqlite3_stmt *ss, const char *fmt, ...);
@@ -48,5 +52,9 @@ extern int db_loadf(struct sqlite3_stmt *ss, const char *fmt, ...);
 extern void db_finalize(struct sqlite3_stmt **ss);
 extern int db_execute(const char *stmt_fmt, ...);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* HAVE_SQLITE3 */
 #endif /* _FRR_DB_H_ */