From bc56486503ec594a2bcb2a1e0fd76b23626c0aee Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 13 Aug 2014 12:30:06 +0200 Subject: common: add batching interfaces This patch adds the following new interfaces: int nft_batch_is_supported(void); void nft_batch_begin(char *buf, uint32_t seq); void nft_batch_end(char *buf, uint32_t seq); Quite likely this is going to be reused by third party applications requiring to put things in the batch. We already have potential clients for this code in nft and iptables-compat. Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/libnftnl') diff --git a/include/libnftnl/common.h b/include/libnftnl/common.h index 04d2906..fa3ab60 100644 --- a/include/libnftnl/common.h +++ b/include/libnftnl/common.h @@ -36,4 +36,9 @@ struct nlmsghdr *nft_nlmsg_build_hdr(char *buf, uint16_t cmd, uint16_t family, struct nft_parse_err *nft_parse_err_alloc(void); void nft_parse_err_free(struct nft_parse_err *); int nft_parse_perror(const char *str, struct nft_parse_err *err); + +int nft_batch_is_supported(void); +void nft_batch_begin(char *buf, uint32_t seq); +void nft_batch_end(char *buf, uint32_t seq); + #endif -- cgit v1.2.3