summaryrefslogtreecommitdiffstats
path: root/include/libnftnl/batch.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-07-03 11:55:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-07-03 11:55:34 +0200
commit2bf12a579167885765401e09147d0bab5f42fa13 (patch)
tree991fbaec25d25b4000b000184378d05fd1e2619f /include/libnftnl/batch.h
parent043060b18d27f24fe723e39bc2c9e5f50dde60dd (diff)
include: missing C++ linkage in headers
A few files (batch.h / common.h / set.h / udata.h) are missing the usual. Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1268 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftnl/batch.h')
-rw-r--r--include/libnftnl/batch.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libnftnl/batch.h b/include/libnftnl/batch.h
index ea1ea66..ff747f6 100644
--- a/include/libnftnl/batch.h
+++ b/include/libnftnl/batch.h
@@ -3,6 +3,10 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct nftnl_batch;
struct nftnl_batch *nftnl_batch_alloc(uint32_t pg_size, uint32_t pg_overrun_size);
@@ -15,4 +19,8 @@ uint32_t nftnl_batch_buffer_len(struct nftnl_batch *batch);
int nftnl_batch_iovec_len(struct nftnl_batch *batch);
void nftnl_batch_iovec(struct nftnl_batch *batch, struct iovec *iov, uint32_t iovlen);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif