summaryrefslogtreecommitdiffstats
path: root/staticd/static_vrf.h
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2021-05-21 01:22:14 +0200
committerChristian Hopps <chopps@gmail.com>2021-06-06 20:03:17 +0200
commitdeca28a33bcd913abeaf03017c52b1d2e9fd50e7 (patch)
treecac3453ef98cab1e6180430a2f2addc0b6a6efdf /staticd/static_vrf.h
parentMerge pull request #8706 from LabNConsulting/chopps/fix-grpc-threading (diff)
downloadfrr-deca28a33bcd913abeaf03017c52b1d2e9fd50e7.tar.xz
frr-deca28a33bcd913abeaf03017c52b1d2e9fd50e7.zip
tests: add grpc unit test
Test uses staticd which required some C++ header protections. Additionally, the test also runs in the ubuntu20 docker container as grpc is supported there by the packaging system. Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'staticd/static_vrf.h')
-rw-r--r--staticd/static_vrf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/staticd/static_vrf.h b/staticd/static_vrf.h
index 397789905..be311af8c 100644
--- a/staticd/static_vrf.h
+++ b/staticd/static_vrf.h
@@ -20,6 +20,10 @@
#ifndef __STATIC_VRF_H__
#define __STATIC_VRF_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct static_vrf {
struct vrf *vrf;
@@ -43,4 +47,8 @@ struct route_table *static_vrf_static_table(afi_t afi, safi_t safi,
struct static_vrf *svrf);
extern void static_vrf_terminate(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif