diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-07-03 11:55:18 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-07-03 11:55:34 +0200 |
commit | 2bf12a579167885765401e09147d0bab5f42fa13 (patch) | |
tree | 991fbaec25d25b4000b000184378d05fd1e2619f /include/libnftnl/set.h | |
parent | 043060b18d27f24fe723e39bc2c9e5f50dde60dd (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/set.h')
-rw-r--r-- | include/libnftnl/set.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libnftnl/set.h b/include/libnftnl/set.h index 27f5bc4..67c54e9 100644 --- a/include/libnftnl/set.h +++ b/include/libnftnl/set.h @@ -8,6 +8,10 @@ #include <libnftnl/common.h> +#ifdef __cplusplus +extern "C" { +#endif + enum nftnl_set_attr { NFTNL_SET_TABLE, NFTNL_SET_NAME, @@ -144,4 +148,8 @@ void nftnl_set_elems_iter_destroy(struct nftnl_set_elems_iter *iter); int nftnl_set_elems_nlmsg_build_payload_iter(struct nlmsghdr *nlh, struct nftnl_set_elems_iter *iter); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* _LIBNFTNL_SET_H_ */ |