summaryrefslogtreecommitdiff
path: root/lib/routing_nb.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 /lib/routing_nb.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 'lib/routing_nb.h')
-rw-r--r--lib/routing_nb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/routing_nb.h b/lib/routing_nb.h
index bdd12b262b..c185091a4b 100644
--- a/lib/routing_nb.h
+++ b/lib/routing_nb.h
@@ -1,6 +1,10 @@
#ifndef _FRR_ROUTING_NB_H_
#define _FRR_ROUTING_NB_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern const struct frr_yang_module_info frr_routing_info;
/* Mandatory callbacks. */
@@ -28,4 +32,8 @@ DECLARE_HOOK(routing_conf_event, (struct nb_cb_create_args *args), (args));
void routing_control_plane_protocols_register_vrf_dependency(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FRR_ROUTING_NB_H_ */