diff options
Diffstat (limited to 'include/libnftnl/batch.h')
-rw-r--r-- | include/libnftnl/batch.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/libnftnl/batch.h b/include/libnftnl/batch.h new file mode 100644 index 0000000..ff747f6 --- /dev/null +++ b/include/libnftnl/batch.h @@ -0,0 +1,26 @@ +#ifndef _LIBNFTNL_BATCH_H_ +#define _LIBNFTNL_BATCH_H_ + +#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_update(struct nftnl_batch *batch); +void nftnl_batch_free(struct nftnl_batch *batch); + +void *nftnl_batch_buffer(struct nftnl_batch *batch); +uint32_t nftnl_batch_buffer_len(struct nftnl_batch *batch); + +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 |