summaryrefslogtreecommitdiff
path: root/lib/resolver.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-04-20 20:53:19 -0300
committerRenato Westphal <renato@opensourcerouting.org>2020-04-22 23:49:22 -0300
commit17e38209a593f6b95b56aba11bed11d233da07c2 (patch)
treec80f25fa35e9b76c20e4183ec93ba0940ad445dc /lib/resolver.h
parent86ac1facf38df2006ab73f30eae0301057fbcade (diff)
lib, zebra: add missing extern "C" {} blocks to new header files
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/resolver.h')
-rw-r--r--lib/resolver.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/resolver.h b/lib/resolver.h
index 59bf0d0f55..5f922dcb57 100644
--- a/lib/resolver.h
+++ b/lib/resolver.h
@@ -13,6 +13,10 @@
#include "thread.h"
#include "sockunion.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct resolver_query {
void (*callback)(struct resolver_query *, const char *errstr, int n,
union sockunion *);
@@ -28,4 +32,8 @@ void resolver_resolve(struct resolver_query *query, int af,
const char *, int,
union sockunion *));
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FRR_RESOLVER_H */