summaryrefslogtreecommitdiff
path: root/staticd/static_zebra.h
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2021-05-20 19:22:14 -0400
committerChristian Hopps <chopps@gmail.com>2021-06-06 18:03:17 +0000
commitdeca28a33bcd913abeaf03017c52b1d2e9fd50e7 (patch)
treecac3453ef98cab1e6180430a2f2addc0b6a6efdf /staticd/static_zebra.h
parent6198bc98bea5034277de2ef1bec34929c9346894 (diff)
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_zebra.h')
-rw-r--r--staticd/static_zebra.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/staticd/static_zebra.h b/staticd/static_zebra.h
index 9f93f3ee63..ca6308559e 100644
--- a/staticd/static_zebra.h
+++ b/staticd/static_zebra.h
@@ -19,6 +19,10 @@
#ifndef __STATIC_ZEBRA_H__
#define __STATIC_ZEBRA_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern struct thread_master *master;
extern void static_zebra_nht_register(struct route_node *rn,
@@ -28,9 +32,15 @@ extern void static_zebra_route_add(struct route_node *rn,
struct static_path *pn, safi_t safi,
bool install);
extern void static_zebra_init(void);
+/* static_zebra_stop used by tests/lib/test_grpc.cpp */
+extern void static_zebra_stop(void);
extern void static_zebra_vrf_register(struct vrf *vrf);
extern void static_zebra_vrf_unregister(struct vrf *vrf);
extern int static_zebra_nh_update(struct route_node *rn,
struct static_nexthop *nh);
+#ifdef __cplusplus
+}
+#endif
+
#endif