summaryrefslogtreecommitdiffstats
path: root/src/batch.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-09-01 13:59:54 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-09-02 13:13:09 +0200
commitb7154e52fc417e927bef0bbfa5db6e7a71f28602 (patch)
tree248ca13d260c891d0399c9335108bff1a99cc375 /src/batch.c
parent37268a018e99181a1d203f0a8a6fc5c6670d09b2 (diff)
src: introduce nftnl_* aliases for all existing functions
This patch introduces the nftnl_ symbols as aliases for the existing nft_ symbols through the EXPORT_SYMBOL(...) macro. We would like to use the nft_* prefix from our upcoming higher level library, meanwhile with this move we avoid that old binaries break because of missing symbol dependencies. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/batch.c')
-rw-r--r--src/batch.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/batch.c b/src/batch.c
index ec9f728..3f53218 100644
--- a/src/batch.c
+++ b/src/batch.c
@@ -80,7 +80,7 @@ err1:
free(batch);
return NULL;
}
-EXPORT_SYMBOL(nft_batch_alloc);
+EXPORT_SYMBOL(nftnl_batch_alloc, nft_batch_alloc);
void nft_batch_free(struct nft_batch *batch)
{
@@ -94,7 +94,7 @@ void nft_batch_free(struct nft_batch *batch)
free(batch);
}
-EXPORT_SYMBOL(nft_batch_free);
+EXPORT_SYMBOL(nftnl_batch_free, nft_batch_free);
int nft_batch_update(struct nft_batch *batch)
{
@@ -119,19 +119,19 @@ int nft_batch_update(struct nft_batch *batch)
err1:
return -1;
}
-EXPORT_SYMBOL(nft_batch_update);
+EXPORT_SYMBOL(nftnl_batch_update, nft_batch_update);
void *nft_batch_buffer(struct nft_batch *batch)
{
return mnl_nlmsg_batch_current(batch->current_page->batch);
}
-EXPORT_SYMBOL(nft_batch_buffer);
+EXPORT_SYMBOL(nftnl_batch_buffer, nft_batch_buffer);
uint32_t nft_batch_buffer_len(struct nft_batch *batch)
{
return mnl_nlmsg_batch_size(batch->current_page->batch);
}
-EXPORT_SYMBOL(nft_batch_buffer_len);
+EXPORT_SYMBOL(nftnl_batch_buffer_len, nft_batch_buffer_len);
int nft_batch_iovec_len(struct nft_batch *batch)
{
@@ -143,7 +143,7 @@ int nft_batch_iovec_len(struct nft_batch *batch)
return num_pages;
}
-EXPORT_SYMBOL(nft_batch_iovec_len);
+EXPORT_SYMBOL(nftnl_batch_iovec_len, nft_batch_iovec_len);
void nft_batch_iovec(struct nft_batch *batch, struct iovec *iov, uint32_t iovlen)
{
@@ -159,4 +159,4 @@ void nft_batch_iovec(struct nft_batch *batch, struct iovec *iov, uint32_t iovlen
i++;
}
}
-EXPORT_SYMBOL(nft_batch_iovec);
+EXPORT_SYMBOL(nftnl_batch_iovec, nft_batch_iovec);