summaryrefslogtreecommitdiffstats
path: root/include/libnftnl/common.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/common.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/common.h')
-rw-r--r--include/libnftnl/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libnftnl/common.h b/include/libnftnl/common.h
index 62c8f6b..2df5fbb 100644
--- a/include/libnftnl/common.h
+++ b/include/libnftnl/common.h
@@ -3,6 +3,10 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
enum {
NFTNL_PARSE_EBADINPUT = 0,
NFTNL_PARSE_EMISSINGNODE,
@@ -52,4 +56,8 @@ int nftnl_batch_is_supported(void);
struct nlmsghdr *nftnl_batch_begin(char *buf, uint32_t seq);
struct nlmsghdr *nftnl_batch_end(char *buf, uint32_t seq);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif