summaryrefslogtreecommitdiff
path: root/staticd/static_nht.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_nht.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_nht.h')
-rw-r--r--staticd/static_nht.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/staticd/static_nht.h b/staticd/static_nht.h
index 9139c367d1..08dba2ebb5 100644
--- a/staticd/static_nht.h
+++ b/staticd/static_nht.h
@@ -20,6 +20,10 @@
#ifndef __STATIC_NHT_H__
#define __STATIC_NHT_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* When we get notification that nexthop tracking has an answer for
* us call this function to find the nexthop we are tracking so it
@@ -53,4 +57,9 @@ extern void static_nht_mark_state(struct prefix *sp, vrf_id_t vrf_id,
*/
extern void static_get_nh_str(struct static_nexthop *nh, char *nexthop,
size_t size);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif