summaryrefslogtreecommitdiff
path: root/lib/pullwr.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/pullwr.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/pullwr.h')
-rw-r--r--lib/pullwr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/pullwr.h b/lib/pullwr.h
index 601eac1b79..a0e89e0c30 100644
--- a/lib/pullwr.h
+++ b/lib/pullwr.h
@@ -26,6 +26,10 @@
#include "thread.h"
#include "stream.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct pullwr;
/* This is a "pull-driven" write event handler. Instead of having some buffer
@@ -107,4 +111,8 @@ static inline void pullwr_write_stream(struct pullwr *pullwr,
extern void pullwr_stats(struct pullwr *pullwr, uint64_t *total_written,
size_t *pending, size_t *kernel_pending);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _WRITEPOLL_H */