diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-02-16 14:27:53 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-02-16 14:27:53 +0100 |
commit | ef63a897a00671e0dc791ecc3a56f9bdbfee9429 (patch) | |
tree | 80e1a79567fbe5b65290a8a4073d53d60b010850 /include/libnftnl/common.h | |
parent | 49f29c7dfebebb24560a26cfb82a4d76fcf9426f (diff) |
common: return nlmsghdr in nftnl_batch_{begin,end}()
Useful to append netlink attributes after the batch headers.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftnl/common.h')
-rw-r--r-- | include/libnftnl/common.h | 4 |
1 files changed, 2 insertions, 2 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 |