summaryrefslogtreecommitdiffstats
path: root/include/libnftnl/batch.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-09-01 19:34:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-09-07 19:24:33 +0200
commit96807c4c05e1e76b8bbf00d874a28a279e7d2840 (patch)
treefc74bc7a9bdc6c3e16524449812bc6cc7f51c5eb /include/libnftnl/batch.h
parent760768890e60617acfd144dce875a4a3be14513c (diff)
src: add compat header file definitions
This patch restores the original nft_* definitions from the header files to avoid sudden compilation breakage of the existing clients of this library. Then, moving forward the idea is to deprecate the old nft_* symbols anytime soon using __attribute__((deprecated)) from the header files to warn our users that they need to update their code. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftnl/batch.h')
-rw-r--r--include/libnftnl/batch.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/libnftnl/batch.h b/include/libnftnl/batch.h
index ea1ea66..bd18733 100644
--- a/include/libnftnl/batch.h
+++ b/include/libnftnl/batch.h
@@ -15,4 +15,20 @@ 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);
+/*
+ * Compat
+ */
+
+struct nft_batch;
+
+struct nft_batch *nft_batch_alloc(uint32_t pg_size, uint32_t pg_overrun_size);
+int nft_batch_update(struct nft_batch *batch);
+void nft_batch_free(struct nft_batch *batch);
+
+void *nft_batch_buffer(struct nft_batch *batch);
+uint32_t nft_batch_buffer_len(struct nft_batch *batch);
+
+int nft_batch_iovec_len(struct nft_batch *batch);
+void nft_batch_iovec(struct nft_batch *batch, struct iovec *iov, uint32_t iovlen);
+
#endif