diff options
-rw-r--r-- | include/libnftnl/common.h | 4 | ||||
-rw-r--r-- | src/common.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/libnftnl/common.h b/include/libnftnl/common.h index f67f186..62c8f6b 100644 --- a/include/libnftnl/common.h +++ b/include/libnftnl/common.h @@ -49,7 +49,7 @@ void nftnl_parse_err_free(struct nftnl_parse_err *); int nftnl_parse_perror(const char *str, struct nftnl_parse_err *err); int nftnl_batch_is_supported(void); -void nftnl_batch_begin(char *buf, uint32_t seq); -void nftnl_batch_end(char *buf, uint32_t seq); +struct nlmsghdr *nftnl_batch_begin(char *buf, uint32_t seq); +struct nlmsghdr *nftnl_batch_end(char *buf, uint32_t seq); #endif diff --git a/src/common.c b/src/common.c index 0f23785..a95883c 100644 --- a/src/common.c +++ b/src/common.c @@ -165,17 +165,17 @@ int nftnl_cmd_footer_fprintf(FILE *fp, uint32_t cmd, uint32_t type, nftnl_cmd_footer_fprintf_cb); } -void nftnl_batch_begin(char *buf, uint32_t seq) +struct nlmsghdr *nftnl_batch_begin(char *buf, uint32_t seq) { - __nftnl_nlmsg_build_hdr(buf, NFNL_MSG_BATCH_BEGIN, AF_UNSPEC, 0, seq, - NFNL_SUBSYS_NFTABLES); + return __nftnl_nlmsg_build_hdr(buf, NFNL_MSG_BATCH_BEGIN, AF_UNSPEC, + 0, seq, NFNL_SUBSYS_NFTABLES); } EXPORT_SYMBOL(nftnl_batch_begin); -void nftnl_batch_end(char *buf, uint32_t seq) +struct nlmsghdr *nftnl_batch_end(char *buf, uint32_t seq) { - __nftnl_nlmsg_build_hdr(buf, NFNL_MSG_BATCH_END, AF_UNSPEC, 0, seq, - NFNL_SUBSYS_NFTABLES); + return __nftnl_nlmsg_build_hdr(buf, NFNL_MSG_BATCH_END, AF_UNSPEC, + 0, seq, NFNL_SUBSYS_NFTABLES); } EXPORT_SYMBOL(nftnl_batch_end); |