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>
#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);
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
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
enum {
NFTNL_PARSE_EBADINPUT = 0,
NFTNL_PARSE_EMISSINGNODE,
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
#include <libnftnl/common.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
enum nftnl_set_attr {
NFTNL_SET_TABLE,
NFTNL_SET_NAME,
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_ */
#include <stdint.h>
#include <stdbool.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* nftnl user data attributes API
*/
int nftnl_udata_parse(const void *data, uint32_t data_len, nftnl_udata_cb_t cb,
void *cb_data);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* _LIBNFTNL_UDATA_H_ */